Posted 11 October 2017, 6:44 am EST
Hi there
I’m using InputMask like this:
<wj-input-mask require [isRequired]="true" [mask]="'>L'" [(ngModel)]="foo">
and using form.valid to enable/disable submit button.
The input shows _ as a placeholder. Now, when I enter a character in it, required is fulfilled and submit button became active. Now when I delete that character, _ is shown again BUT input mask assume that _ is the entered character and therefore it’s not empty so required is satisfied and submit is active.
This is for sure a bug but is there any workaround for this so required is working as it should? I want form to be invalid when I remove data from input with required attribute.
