QInput validation rules give incorrect result for certain numbers #17358
Labels
area/components
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/vite-plugin
Bugs related to Vite usage with Quasar
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
I have a QInput field of type
number
usingv-model.number
. The component has a rule that tests the input value against the regular expression^[0-9][.][0-9]$
however when the decimal is a0
the rule fails, e.g.3.0
fails. Any other decimal number passes, e.g.3.3
.What did you expect to happen?
Any value that matches the regular expression passes the rule, including 0-decimal values.
Reproduction URL
https://codepen.io/scottbro/pen/GRbRbbB
How to reproduce?
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
No response
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: