Skip to content

Replacement by Selection not possible if input field contains asterisk #1504

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

Open
gehrmanng opened this issue Feb 17, 2025 · 0 comments
Open

Comments

@gehrmanng
Copy link

🐞 bug report

Is this a regression?

Did this behavior use to work in the previous version? Yes, the previous version in which this bug was not present was: 17.1.8 (didn't test v18)

Description

Given a custom Pattern which allows entering characters, digits, dashes and asterisks with optional set to true. After entering an input value of "123*" it is not possible to replace any character by selection. The selected character gets always replaced by itself no matter what is typed in.

🔬 Minimal Reproduction

https://stackblitz.com/edit/angular-19-ngx-mask-selection-replacement

Type 123* into the input field. Then select 3 using ur mouse and type 2. The 3 will not get replaced with 2.

🔥 Exception or Error

No exception.

🌍 Your Environment

Angular Version:
Angular: 19.1.6
ngx-mask: 19.0.6

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

No branches or pull requests

1 participant