You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
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.
OS: Windows 10
Browser: Chrome Version 121.0.6167.161 (Official Build) (64-bit)
Inputmask version: 5.0.8
Thank you very much!
The text was updated successfully, but these errors were encountered:
The only workaround I've managed to find is using the digitsOptional: false. Actually, this is an important issue. I think the noValuePatching option should allow us not to patch the value while we're typing.
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: