Ngx-mask: Optional characters at the end not working

Created on 11 Mar 2019  路  2Comments  路  Source: JsDaddy/ngx-mask

Hi,

I'm having trouble with optional characters with both custom pattern and optional number using "9" at the end of the string. The optional characters aren't optional, they stay mandatory and it is causing control validation error. You can look at the example I did here:

https://stackblitz.com/edit/angular-cmmj4g

Any chance for a fix for this or a way to make it work?

bug enhancement

Most helpful comment

@Gustav0ar Hello we will fix it today

All 2 comments

@Gustav0ar Hello we will fix it today

@Thegrep01 Hi, I just tested with version 7.6.4 and there are still scenarios that it isn't working properly.
It should not give validation error when non of the optional characters aren't entered, and it does at the moment in all cases. Other scenario that I tested that it isn't working is when I type just some optional characters but not all, and it still gives error...

Look at the updated examples: https://stackblitz.com/edit/angular-cmmj4g

Was this page helpful?
0 / 5 - 0 ratings