Vuetify Version: 2.2.6 and 2.2.8
Vue Version: 2.6.10
Browsers: Firefox 72.0
OS: Linux
Click is triggered once after click
Click is triggered twice after click
Vuetify 2.2.6: https://codepen.io/peteruithoven/pen/OJPYmbm
Vuetify 2.2.8: https://codepen.io/peteruithoven/pen/XWJwRqL
One workaround seems to be to stop the click event's propagation by adding .stop.
I can also reproduce this with Vuetify 2.2.8:
https://codepen.io/peteruithoven/pen/XWJwRqL
You should be using input-value and @change here anyway (or v-model).
@KaelWD but @change isn't listed in the API:
https://vuetifyjs.com/en/components/selection-controls#api
I tried adding it in the same codepen, but it doesn't seem to be triggered:
https://codepen.io/peteruithoven/pen/XWJwRqL
(I can't easily use v-model for my use case)
The bound click event is overwriting the internal one so it breaks change, if you remove @click it works correctly.
Related: #5968
@KaelWD you are right. Using only @change works perfectly. I've updated my example.
Yeah, docs DEFINITELY need to note in bold that @click will trigger twice. This can cause some pretty unpleasant effects...
@change instead of @click
Most helpful comment
@KaelWD you are right. Using only
@changeworks perfectly. I've updated my example.