Ngx-mask: There is any way to use two different masks in one input?

Created on 14 Nov 2019  路  5Comments  路  Source: JsDaddy/ngx-mask

The problem is a numeric input where the number can contain 10 or 11 digits.

If it has 10 digits, the mask should be (00) 0000-0000, if it has 11 digits, the mask should be (00) 0 0000-0000.

I tried to use (00) 9 0000-0000 but didn't work well.

Can someone help me?

P2 help wanted question

Most helpful comment

Yes, there is:
image
bottom of https://github.com/JsDaddy/ngx-mask

All 5 comments

I have the same problem

I have the same fucking problem

just checking, I'm also facing the same scenario where same input has to support 2 different masks

Yes, there is:
image
bottom of https://github.com/JsDaddy/ngx-mask

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnagaev picture mnagaev  路  3Comments

raisiqueira picture raisiqueira  路  3Comments

renanBritz picture renanBritz  路  3Comments

TimWarp picture TimWarp  路  4Comments

cabbott65 picture cabbott65  路  4Comments