Vuetify: @click on v-btn not work

Created on 7 Feb 2017  路  2Comments  路  Source: vuetifyjs/vuetify

This is my example code

<v-btn @click="getText($event)" ripple info>Get Text</v-btn>
<button type="button" @click="getText($event)">Click Me!</button>
export default {
    name: 'dashboard',
    methods: {
      translate (event) {
        ipcRenderer.send('translate', event.target.value)
      },
      getText (event) {
        console.log(event)
        ipcRenderer.send('getText')
      }
    }
  }

when i click "v-btn" function getText did not run but "button" worked.

Most helpful comment

Forget docs about .native when use event on v-btn

All 2 comments

Forget docs about .native when use event on v-btn

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alterhu2020 picture alterhu2020  路  3Comments

Webifi picture Webifi  路  3Comments

aaronjpitts picture aaronjpitts  路  3Comments

paladin2005 picture paladin2005  路  3Comments

sebastianmacias picture sebastianmacias  路  3Comments