ngx-mask
ngx-mask copied to clipboard
24h valid time example creates wrong character order
When looking at the examples page, at the 'Valid 24 hour format' example. I see the following behavior that swaps character order (as opposed to typing order).
- I open the page using Firefox v101 on windows.
- Click on the input box for the example
- Type the characters: 901
- I expect the output 9:01
- I get the output 9:10
If I then clear the input box and repeat the same characters it does show 9:01 as expected. Refreshing the page (F5) breaks it again.
The issue seems to be that after typing '90' the cursor is before the 0 (the input shows '9:|0' with pipe being the cursor). After typing the 1 the input shows '9:10|'
Likewise inputting 90101 gives 9:10:10