Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backspace not working with separator #1215

Closed
stevenspears opened this issue Aug 15, 2023 · 2 comments
Closed

Backspace not working with separator #1215

stevenspears opened this issue Aug 15, 2023 · 2 comments
Labels

Comments

@stevenspears
Copy link

🐞 bug report

Is this a regression?

Confirmed working in 7.4.3: https://stackblitz.com/edit/angular-ngx-mask-example?file=src%2Fapp%2Fapp.component.ts
Not working in my project: 15.0.2

Description

When cursor is after (to the right) of the separator, backspace does not work. Nothing happens.

🔬 Minimal Reproduction

To recreate:
1. Enter amount (e.g. 23000, formats to 23,000)
2. Move cursor to right-side of separator/comma
3. Use Backspace
Result: Nothing happens
Example, forked from issue #909 https://stackblitz.com/edit/angular-eqvb6z?file=src%2Fmain.ts
Uses ngx-mask 16.1.7

https://stackblitz.com/edit/angular-eqvb6z?file=src%2Fmain.ts

🌍 Your Environment

Angular Version:
See stackblitz

@stevenspears
Copy link
Author

stevenspears commented Aug 16, 2023

Using the web demo site, https://jsdaddy.github.io/ngx-mask/#3, I have noticed the space and dot separators seem ok, and the comma separator doesn't work.

Can be recreated on the demo site, separators:

@andriikamaldinov1
Copy link
Collaborator

@stevenspears Thanks for using Ngx-Mask. Please update to latest version.
All work as expected - https://stackblitz.com/edit/angular-jkvseb?file=src%2Fmain.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants