ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

Mask form validation always true

Open archigo opened this issue 7 years ago • 5 comments

I just updated to 7.6.6 from 7.3.6. I have a mask on an input: as soon as i edit this field, there will be a validation error {Mask error: true} no matter what.

This did not happen in 7.3.6.

archigo avatar Mar 20 '19 17:03 archigo

@archigo validation is enabled by default, you can disable it by setting the 'false' flag, for example: <input type='text' mask="00 00" [validation]="false">

AlexeyDolya avatar Mar 21 '19 11:03 AlexeyDolya

Yes, but the mask should not be throwing an error when the input has a 7 number value. It does.

Unless i misunderstand how the mask works? It is behaving as expected visually.

archigo avatar Mar 21 '19 13:03 archigo

@archigo could you provide the example?

AlexeyDolya avatar Mar 21 '19 14:03 AlexeyDolya

mask-test.zip

archigo avatar Mar 22 '19 13:03 archigo

@archigo

AlexeyDolya avatar Mar 29 '19 10:03 AlexeyDolya