Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Clickable Event #16

Open
michaelasears opened this issue Jun 26, 2018 · 1 comment
Open

Clickable Event #16

michaelasears opened this issue Jun 26, 2018 · 1 comment

Comments

@michaelasears
Copy link

michaelasears commented Jun 26, 2018

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??

@MarcelloTheArcane
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants