Wht is QInput emitting empty string for number inputs when manually cleared? #17895
-
When q-input, that is of number type, despite having v-model.number modifier, has its input cleared manually by the user via delete/backspace button, it emits empty string instead of null, undefined or 0. Can't this be fixed? It's getting quite infuriating that i not only have to battle javascript's nondeterministic state, due to no strict types, but when the framework itself does this and becomes unpredictable, it's just unbearable. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
vuejs/vue#4742 https://vuejs.org/guide/essentials/forms.html#number
This is how Vue behaves unfortunately 🤷 I don't think it will get fixed before Vue 4, if it ever gets fixed. |
Beta Was this translation helpful? Give feedback.
vuejs/vue#4742
vuejs/core#3378
vuejs/core#8214
vuejs/core#8215
https://vuejs.org/guide/essentials/forms.html#number
This is how Vue behaves unfortunately 🤷 I don't think it will get fixed before Vue 4, if it ever gets fixed.