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

'DEL' button does not work when cursor is in front of input

Open nellstephanj opened this issue 7 years ago • 4 comments

Using version "ngx-mask": "^8.1.5".

I am not able to use the 'DEL' button when the cursor is in front of the text input. However, when the cursor is in the middle of the text input it works as expected.

I tested the issue on the Demo Page and I experience the same problem.

nellstephanj avatar Oct 31 '19 07:10 nellstephanj

Hopefully fixed with this PR: https://github.com/ColinMorris83/ngx-mask/tree/560-patterns-attribute Feel free to test out by cloning the repo, then doing following to test it out in the demo app on http://localhost:4200 npm i npm run build:lib npm start

ColinMorris83 avatar Oct 31 '19 10:10 ColinMorris83

I tested with the PR above and I am still experiencing the problem. Hopefully, the GIF will make it a bit more clear about what is happening. Basically I am able to delete anywhere in the input except when the cursor is at the front of the input. Mask

Thanks for all the help

nellstephanj avatar Oct 31 '19 13:10 nellstephanj

That's odd, I'm trying the same thing in the Hour field in the demo app and it's deleting ok.

ezgif com-video-to-gif

ColinMorris83 avatar Oct 31 '19 13:10 ColinMorris83

Not sure what happened but I tried it again and it is working as expected! 😄 Thanks

nellstephanj avatar Oct 31 '19 18:10 nellstephanj