Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was 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

@piotrl

Description

@piotrl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions