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
I have a mask function that returns a dynamic mask which changes based on input. The mask works when typing, however copy/ paste appears to always use the most strict mask. For instance if I use '0000 0000 0000 0000 000||0000 0000 0000 0000', and I copy/ paste 4111111111111111111, the text gets formatted as 4111 1111 1111 1111 and it loses the last three digits. Copy pasting again works.
🐞 bug report
Is this a regression?
Don't know
Description
I have a mask function that returns a dynamic mask which changes based on input. The mask works when typing, however copy/ paste appears to always use the most strict mask. For instance if I use '0000 0000 0000 0000 000||0000 0000 0000 0000', and I copy/ paste 4111111111111111111, the text gets formatted as 4111 1111 1111 1111 and it loses the last three digits. Copy pasting again works.
🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-tcuqnp
https://stackblitz.com/edit/angular-ivy-tcuqnp🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: