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
The mask format is lost when a part of the text is selected and new numbers are typed in. This happens when keepCharacterPositions is set to true together with showMaskTyped set to true. The expected result is that the numbers that are set to placeholderCharacter.
🔬 Minimal Reproduction
See the mask demo of keepCharacterPositions. https://jsdaddy.github.io/ngx-mask/#7
Fill in 111-222-333, select 222 in the middle and start type a 4. The input now loses the given mask format. The expected result would be 111-4__-333 but now it shows 111--433.
🌍 Your Environment
Angular Version:
"@angular/core": "^19.2.1",
The text was updated successfully, but these errors were encountered:
🐞 bug report
Is this a regression?
No
Description
The mask format is lost when a part of the text is selected and new numbers are typed in. This happens when
keepCharacterPositions
is set totrue
together withshowMaskTyped
set to true. The expected result is that the numbers that are set toplaceholderCharacter
.🔬 Minimal Reproduction
See the mask demo of
keepCharacterPositions
.https://jsdaddy.github.io/ngx-mask/#7
Fill in 111-222-333, select
222
in the middle and start type a4
. The input now loses the given mask format. The expected result would be111-4__-333
but now it shows111--433
.🌍 Your Environment
Angular Version:
"@angular/core": "^19.2.1",
The text was updated successfully, but these errors were encountered: