ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

24h valid time example creates wrong character order

Open mennolodder opened this issue 3 years ago • 0 comments

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).

  1. I open the page using Firefox v101 on windows.
  2. Click on the input box for the example
  3. Type the characters: 901
  4. I expect the output 9:01
  5. 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

mennolodder avatar Jun 17 '22 12:06 mennolodder