vue-feather-icon icon indicating copy to clipboard operation
vue-feather-icon copied to clipboard

Clickable Event

Open michaelasears opened this issue 6 years ago • 1 comments

Not able to pass in @click or v-on:click to work within the Vue.js instance.. has anyone figured it out? this is what I have tried: <feather-info v-on:click="showInfo()" class="w-4 h-4 text-grey-light align-middle" stroke="currentColor" data-dest="infoDialogText" @click:prevent="showInfo" title="Information"></feather-info>

Got this to work... but seems to be just a work around: <feather-info v-bind:onclick="'window.vueapp.showInfo(event)'" class="w-4 h-4 text-grey-light align-middle" stroke="currentColor" data-dest="infoDialogText" title="Information"></feather-info>

Any ideas of why the on:click doesn't work??

michaelasears avatar Jun 26 '18 14:06 michaelasears

in the first example, you have two @click handlers (v-on is the same as @)

MarcelloTheArcane avatar Jul 12 '19 09:07 MarcelloTheArcane