candreoliveira / ngMask

Best Angular mask alternative! No jQuery, pure JS. About ~6kb!
http://candreoliveira.github.io/#/ngMask
ISC License
419 stars 171 forks source link

Mask still allows to input some wrong character #113

Open rafaeltscs opened 8 years ago

rafaeltscs commented 8 years ago

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.

sergiy-talashko commented 8 years ago

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

You can read about this attr in Readme

icaromagnago commented 7 years ago

The issue still occur when using Ctrl + V