You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
Hi,
great library, our users are happy to use it ;)
Recently I've upgraded Angular from 1.3.12 to 1.5.8 and found out that validating with ng-pattern doesn't work anymore.
Reason is in change introduced in 1.3.19, that ng-pattern directive validates $viewValue instead of $modelValue - Reference in changelog.
It is not specifically problem in ui-mask, the behavior is the same in version 1.2.0 to 1.8.6.
This issue is extension of #165 which contains solution only for specific RegExp.
Hi,
great library, our users are happy to use it ;)
Recently I've upgraded Angular from 1.3.12 to 1.5.8 and found out that validating with ng-pattern doesn't work anymore.
Reason is in change introduced in 1.3.19, that ng-pattern directive validates $viewValue instead of $modelValue - Reference in changelog.
It is not specifically problem in ui-mask, the behavior is the same in version 1.2.0 to 1.8.6.
This issue is extension of #165 which contains solution only for specific RegExp.
Workaround for that is to use custom directive provided by angular team, I've described it in this StackOverflow thread - Angularjs ui-mask with ng-pattern.
I've created plunker with broken example - Plunker.
Maybe adding support for this directive inside of ui-mask with examples in doc might be go to solution?
The text was updated successfully, but these errors were encountered: