Is a dynamic Input Mask achievable?
New DiscussionHi there
I’ve been trying to make a sort of dynamic input mask that changes based on user input.
Expected:
1. If the first keydown is a word, it should render Canada Postal Code mask.
2. If it is a number, renders USA Postal Code mask.
Actual:
The input doesn’t get updated with the new mask.
I also prepared a StackBlitz for this: https://stackblitz.com/edit/angular-9sr8ok?file=src/app/mask-sample-5/mask-sample-5.component.html
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
5 Created On
Nov 21, 2019 Last Post
6 years, 3 months ago