angular-ui / ui-mask

Mask on an input field so the user can only type pre-determined pattern
https://htmlpreview.github.io/?https://github.com/angular-ui/ui-mask/master/demo/index.html
MIT License
391 stars 258 forks source link

allowInvalidTrue causes backspace deletes all #237

Open isener opened 6 years ago

isener commented 6 years ago

screenshot at jan 15 16-03-42

When we type into input, there is no problem. But when we delete 1 character from that input, it deletes all within typed as shown;

screenshot at jan 15 16-04-38

isener commented 6 years ago

I found solution that you have to remove keyup event from this global setting; uiMaskConfigProvider.eventsToHandle(["input", "click", "focus"]);