Skip to content

Switch - Update state when v-model changes #2174

Answered by swilla
swilla asked this question in Help
Discussion options

You must be logged in to vote

The computed property caused some errors when using the toggle switch itself. Using an uncontrolled component is the way that ended up working.

https://codesandbox.io/s/nifty-sound-qdvps5?file=/src/components/Toggle.vue:0-1448

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by swilla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant