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 am trying to implement an input that formats phone numbers, we have a few formats, so I used a dynamic mask with a few pattern masks and a dispatch function to select the best pattern.
All works fine; however, when I try to delete a fixed character of the mask, it clears the whole input value. See this video for reference. In the first example, the fixed part is 058 32 and in the second example is 050.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I've encountered an issue (or a feature?).
I am trying to implement an input that formats phone numbers, we have a few formats, so I used a dynamic mask with a few pattern masks and a dispatch function to select the best pattern.
All works fine; however, when I try to delete a fixed character of the mask, it clears the whole input value. See this video for reference. In the first example, the fixed part is
058 32
and in the second example is050
.Beta Was this translation helpful? Give feedback.
All reactions