Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Is a dynamic Input Mask achievable?
posted

Hi 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

Parents Reply Children
No Data