How is <v-text-field type="number" />
supposed to work?
#21216
-
I'm trying to use However, it seems to be impossible to work with this configuration. If I type in numbers only, everything is fine, the v-model gets updated to the same value the input shows. But if I type in non-number characters, the v-model becomes "" but the input shows whatever was typed in (including the non-number characters). So there seems to be some validation but it is not reflected in the rendering. How can I fix this? My preferred solution would be that the number input just does not accept any other character than I tried all kinds of tricks with Any help appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You could try the VNumberInput, which is intended to be a replacement for the standard |
Beta Was this translation helpful? Give feedback.
You could try the VNumberInput, which is intended to be a replacement for the standard
<input type="number">
and supports all of the standard Vuetify input variant props.