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
Copy from somewhere string '555555' (the string's length shouldn't match with length of the entered value) into the buffer .
Select the entered '111' value in the input.
Substitute selected value from the input with copied '555555' by Ctrl+V.
Actual: Value in the input and model set to '5111'. Expected: Value in the input and model should be changed to '555555'
Demo: https://www.screencast.com/t/dxuaf3d4Tg0X
All cases work good without defined [hiddenInput] or when [hiddenInput]="undefined"
🐞 bug report
Is this a regression?
Yes, the previous version in which this bug was not present was:
16.2.3 - for case 1
14.0.1 - for case 2 and 3
Description
Common steps
[mask]="'9999999999999'"
[hiddenInput]="false"
or[hiddenInput]="true"
Case 1 (latest working version is 16.2.3)
Expected: Value in input and model should be changed to '1'
Demo: https://www.screencast.com/t/qxt8zT9h1J6j
Case 2 (latest working version is 14.0.1)
Expected: Value in the input and model should be changed to '222'
Demo: https://www.screencast.com/t/jzVUncKe
Case 3 (latest working version is 14.0.1)
Expected: Value in the input and model should be changed to '555555'
Demo: https://www.screencast.com/t/dxuaf3d4Tg0X
All cases work good without defined [hiddenInput] or when
[hiddenInput]="undefined"
🔬 Minimal Reproduction
Sample: https://stackblitz.com/edit/ngx-mask-hidden-input-bug?file=src%2Fmain.ts
🌍 Your Environment
Angular Version: 16.1.7
Chrome Version: 115.0.5790.110
The text was updated successfully, but these errors were encountered: