-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
The inputmask is autocompleted to the min value when deleting the radix point #2773
Comments
The only workaround I've managed to find is using the |
This issue is fixed in v5.0.10-beta.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using the options below for an inputmask instance. My input accepts a decimal value within a given range.
{ "alias": "decimal", "min": 35, "max": 200, "digits": 2, "rightAlign": false, "allowMinus": false, "showMaskOnHover": false, "showMaskOnFocus": false, "jitMasking": true, "shortcuts": null }
In the image below I describe some situations where if I delete the radix point, a reevaluation is performed which sets the value to the predefined minimum value. I would like the value to remain unchanged and to allow the user to continue typing.
When debugging the inputmask plugin code, I found that the method which is responsible for this reevalution is onKeyDown() and particularly the highlighted line in dist/inputmask.js.
Thank you very much!
The text was updated successfully, but these errors were encountered: