-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow only numbers in dial mode #147
Comments
Are you sure you updated the version? I checked that button as well. Open the docs and try there. As I see everything works as expected. |
Yes, I have version 17.4.1 installed. I'm trying in the dial mode of the documentation, and it lets me enter chars 🤯 |
How do you do it? Maybe cache? Because I can't enter anything else except number. |
I've tried a lot of combinations on mac and windows and couldn't reproduce it. Did you clean browser cache? |
Yes, I did it but the bug is persistent |
I figure it out. This is some specific behaviour for Spanish keyboard. It ignores |
Did you try using a regular expression to allow only numbers and then using a preventDefault? |
Yes, I did. It didn't help as I remember. |
Hi Do you have any news? |
Nope. I believe the most important is that you cannot apply non-numbers. The fact you can enter into the fields some tricky value that will be replaced on blur is not a big deal. |
Hi Do you have any news? |
@jfc-ddev nope. Now the exact value is checking and it doesn't work even in this case. There is a magic with Spanish keyboard. Not sure it will be fixed someday. |
In the latest version it was found:
When a character is entered, it no longer detects backspace and the entered value cannot be deleted.
It is still allowed to write characters other than numbers.
Tip: You could try adding a regex to apply event.preventDefault() when it is verified that it is not a digit.
Greetings
The text was updated successfully, but these errors were encountered: