Formly Reset the Errors on Focus Out for Prime Input Mask

33 Views Asked by At

Formly should retain error instead of nullifying the errors for inputmask.

https://stackblitz.com/edit/angular-ljcdzn-3r3fwu?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Finput-mask.component.ts,src%2Fapp%2Fapp.component.html

By default, I have set the invalid error to true on model changes to the inputMask field and input field. When we enter the value and focus out, the error bound to the inputMask is vanishing, whereas for the input field, it is retaining the error .

0

There are 0 best solutions below