Ngx-mask: using (000) 000-0000 as mask cursor move to left everytime on entring 4th digit. help wanted.

Created on 12 Jun 2018  路  10Comments  路  Source: JsDaddy/ngx-mask

Most helpful comment

@anup-wadhwani @eisidoro @AllanPinheiroDeLima Thanks. I will check

All 10 comments

same problem here using mask="(00) 00000-0000"

Same here. Someone knows how to solve ?

@anup-wadhwani @eisidoro @AllanPinheiroDeLima Thanks. I will check

oh yeah I got that problem too and it's a little weird that if you continue typing the cursor will eventually move back to the correct location but only near the end (around 9th char typed)

I think it's also related to issue #94

EDIT
If I use mask "000-000-0000" without the ( ) it works correctly. I would think the ) might be the cause of the problem. Unless there's a timing issue, we're actually replacing 2 chars here the ) and a space.

@eisidoro @AllanPinheiroDeLima @ghiscoding Please try latest version , 2.9.4

@NepipenkoIgor
Thanks it does help in the original question, however doing a copy+paste is worst than before. If I do a paste, it's now 2 or 3 characters behind (instead of being completely at the end). I can open another issue if you wish

@ghiscoding Yes , please open another one.

Thanks, it works.

Worked for me too, but I did'nt run a test like @ghiscoding did. I will try and open an issue or comment again if I see the problem

@AllanPinheiroDeLima
I did open another issue #131 and it was fixed within the same day :)
I don't see any other errors anymore

Was this page helpful?
0 / 5 - 0 ratings