-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Cannot enter the fourth zero with mask '#:0:0:###' #17980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Problem is more complex. The reason is the suppression of input characters from mask. With mask="1###" you can't enter number with |
Numbers are not supported tokens in the mask: https://quasar.dev/vue-components/input#mask . You probably want to have some regex based manual validation. |
The documentation specifically states that it is supported. The '#' symbol is used. https://github.com/quasarframework/quasar/blob/dev/ui/src/components/input/use-mask.js#L6 |
I mean numbers like '0', '1', '2' etc. |
I don't quite understand you. In my case, it's not 1##, but rather 1:##. Could you please elaborate in more detail on what you mean? |
It does work a little different than I thought. You can only use the input with the supported mask tokens With 1:## you can only enter two numeric characters. With 1:0:0:0 you can't enter anything as there are no mask tokens. |
Well, that's clear enough! My problem is that with the mask |
What happened?
The fourth zero disappears
What did you expect to happen?
0:0:0:0
in the q-input as a valueReproduction URL
https://codepen.io/doox911/pen/PwwzGgr?editors=101
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
SPA Mode
Platforms/Browsers
Other
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: