How to assert the v-model as a number #13227
Answered
by
Rednas83
Rednas83
asked this question in
Help/Questions
-
Tried |
Beta Was this translation helpful? Give feedback.
Answered by
Rednas83
May 2, 2025
Replies: 2 comments
-
Without having tested it I'd say you'd have to use:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I am pretty sure that will break the reactivity that is required by the v-model. I thought USlider required a number but it required a string instead🤭 So all I had to to do is update the state from number to string |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rednas83
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am pretty sure that will break the reactivity that is required by the v-model.
I thought USlider required a number but it required a string instead🤭 So all I had to to do is update the state from number to string