Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Broken compability with ng-pattern in Angular 1.3.19 and later #198

Closed
piotrl opened this issue Nov 18, 2016 · 0 comments
Closed

Broken compability with ng-pattern in Angular 1.3.19 and later #198

piotrl opened this issue Nov 18, 2016 · 0 comments

Comments

@piotrl
Copy link

piotrl commented Nov 18, 2016

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?

@piotrl piotrl closed this as completed Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant