imaskjs
imaskjs copied to clipboard
Leading zero blocks the input
Describe the bug Leading zero stops the input
To Reproduce
- Open demo for Number mask
- Type 0
- Type any non zero other number
Expected behavior Value becomes the number from step 3.
Environment:
- OS: macOS
- Browser Chrome
- Version 91
- IMask version 6.1.0
- Framework/plugin React 16
Another one case with leading zeroes:
- Type 2
- Put cursor to the left
- Type 0 (yes, it's able!)
- Repeat 2 then 3
Result:
But input after 2 or inbetween is blocked
Seeing the same behavior.
first case is not fixed (imo on input value should be either allowed or blocked but not replaced)