ngMask icon indicating copy to clipboard operation
ngMask copied to clipboard

Mask still allows to input some wrong character

Open rafaeltscs opened this issue 8 years ago • 2 comments

I've tried some masks and could notice that sometimes wrong inputs are allowed.

  1. With any mask I tried, like '99.999-999' the first character I type is showed in the input even if it is not supposed to be shown.
  2. If I type too fast, wrong inputs are allowed.
  3. They don't pass the validators. The form is still invalid, but the values are allowed in the input.

Both cases can be verified at the showcase.

Using Chrome.

rafaeltscs avatar Jul 23 '16 20:07 rafaeltscs

@rafaeltscs Had same problem. Fixed by adding restrict="reject".

You can read about this attr in Readme

sergiy-talashko avatar Oct 24 '16 08:10 sergiy-talashko

The issue still occur when using Ctrl + V

icaromagnago avatar Jul 14 '17 13:07 icaromagnago