You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
🐞 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
The text was updated successfully, but these errors were encountered: