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
Originally posted by rieg-ec August 12, 2022
I'm having an issue with a custom checkbox i made. I want it to work like a native checkbox, and also when binding with v-model. Here's the code:
For some reason, when checking it sets the value to true, then instantly switchs to false. When unchecking it doesn't do anything.
if i add another checkbox, with the same name and v-model, it works as it is supposed. Any ideas on what is wrong here?
Discussed in #3894
Originally posted by rieg-ec August 12, 2022
I'm having an issue with a custom checkbox i made. I want it to work like a native checkbox, and also when binding with v-model. Here's the code:
It works perfect. The only way it isn't currently working, is when inside a
<Form />
and i passv-model
to it.with this code:
the behaviour is the following:
Screen.Recording.2022-08-12.at.15.31.24.mov
For some reason, when checking it sets the value to
true
, then instantly switchs tofalse
. When unchecking it doesn't do anything.if i add another checkbox, with the same
name
andv-model
, it works as it is supposed. Any ideas on what is wrong here?Demo
stackblitz.com/edit/vue-gfdfwg?file=src/App.vue
The text was updated successfully, but these errors were encountered: