Skip to content

Vue3 Custom Checkbox not updating value #3431

Answered by logaretm
erdemgonul asked this question in Q&A
Discussion options

You must be logged in to vote

You didn't bind the Field with v-model to change your x value. Also inside your checkbox, you didn't handle any events from the native input.

Here is some changes that make it work as expected:

https://codesandbox.io/s/vue3veevalidatecustomcheckbox-forked-dijtv?file=/src/components/HelloWorld.vue

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@erdemgonul
Comment options

@logaretm
Comment options

@hi-reeve
Comment options

Answer selected by logaretm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3430 on August 04, 2021 15:04.