You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a click event is triggered on the Vuetify checkbox, the related model should change from undefined to true. Then when the second click event is triggered on the same Vuetify checkbox, the related model should change from true to false.
What is actually happening?
When a click event is triggered on the Vuetify checkbox, the related model changes from undefined to true. However, when the second click event is triggered on the same Vuetify checkbox, the related model doesn't change from true to false like you'd expect.
I ran into this issue when upgrading from 1.0.0-beta.12 (where it worked as expected) to 1.0.0-beta.15. So my assumption is that this is at least in someway related to vue-test-utils, and maybe not a Vuetify specific issue. Or maybe there's a preferred way to accomplish this, and my method just so happened to work in 1.0.0-beta.12, but not anymore.
Version
1.0.0-beta.15
Reproduction link
https://codesandbox.io/s/8yypln8828
Steps to reproduce
File Editor > src > components > HelloWorld.spec.js
The spec includes:
What is expected?
When a click event is triggered on the Vuetify checkbox, the related model should change from
undefined
totrue
. Then when the second click event is triggered on the same Vuetify checkbox, the related model should change fromtrue
tofalse
.What is actually happening?
When a click event is triggered on the Vuetify checkbox, the related model changes from
undefined
totrue
. However, when the second click event is triggered on the same Vuetify checkbox, the related model doesn't change fromtrue
tofalse
like you'd expect.I ran into this issue when upgrading from
1.0.0-beta.12
(where it worked as expected) to1.0.0-beta.15
. So my assumption is that this is at least in someway related tovue-test-utils
, and maybe not aVuetify
specific issue. Or maybe there's a preferred way to accomplish this, and my method just so happened to work in1.0.0-beta.12
, but not anymore.Here's the actual component:
https://github.com/vuetifyjs/vuetify/tree/dev/src/components/VCheckbox
The text was updated successfully, but these errors were encountered: