Open herna opened 1 year ago
seems like you have acync validator and the form is not valid until async validation finished
After asynchronous validation begins, the form control enters a pending state. You can inspect the control's pending property and use it to give visual feedback about the ongoing validation operation.
Ok thanks, I'll tweak it accordingly.
Hi,
I am trying to enable/disable the submit button based on the form validation. I have this simple program:
The problem with this is that the submit button flashes as soon as you just type something in the input field and it's quite annoying. The expect behaviour I was looking for is not disabling the submit button while the AsyncValidator is taking place, but waiting until it ends (after 250 ms in this example) and just at that point update the state of the button. It looks like this:
What am I doing wrong?
Thanks