Ngx-mask: Field is losing pristine property

Created on 4 Sep 2017  路  7Comments  路  Source: JsDaddy/ngx-mask

Hi! First, thank you for your lib! It's being very useful...
I am only having a problem with obligatory fields validation because when I use a mask, the pristine property is set to false....

Thanks,

Luciana

bug

Most helpful comment

Hi there,
Any update on this issue?

Thx and nice work :+1:

All 7 comments

@lucianalml thanks , i will try to solve this issue

@lucianalml Could you provide repo with for your issue ?

Hi!!
Of course! I just created that repo:
https://github.com/lucianalml/example-mask

At firts I was using 1.0.3 which was with the pristine problem...
I trie to update to 2.0.3 but I had problems importing in app.module:
NgxMaskModule.forRoot(options)
NgxMaskModule.forRoot(),

Thanks,

Luciana

@lucianalml Please, try latest version

Hi @NepipenkoIgor,

Again, thanks for the lib indeed!

I'm getting the exact same issue while using version 2.2.2 was this solved? has this been reintroduced?

Rgds

Hi there,
Any update on this issue?

Thx and nice work :+1:

Hi @NepipenkoIgor I'm using v7.8.9, and I'm getting a similar error where the field fails validation unless I re-enter the value it was patched with. If I output the field errors this.form.get('phone').errors I get an object literal of { 'Mask error': true }. We're using mask on an input mask="(000) 000-0000" for the phone number. It seems to be located in the MaskDirective.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

mnagaev picture mnagaev  路  3Comments

prosto-artem picture prosto-artem  路  4Comments

TimWarp picture TimWarp  路  4Comments

sbeka picture sbeka  路  3Comments