You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The validation on a provider with a 'confirmed' rule is incorrectly being fired when the target has been entered into (even if it also has :events="['blur']"). This results in some aggressive inline errors where the confirmed field gets an error before it has even been focused. This can't be escaped with "bails=true" either.
This PR forces the validation provider and the directive to not validate the cross-field targets until they have been interacted with or if validation was triggered manually at least once.
This solves the "aggressive" behavior when the user has only interacted with one of the two confirmed inputs for the first time.
closes#1902, closes#1869, closes#1765
Versions
Describe the bug
The validation on a provider with a 'confirmed' rule is incorrectly being fired when the target has been entered into (even if it also has :events="['blur']"). This results in some aggressive inline errors where the confirmed field gets an error before it has even been focused. This can't be escaped with "bails=true" either.
To reproduce
Steps to reproduce the behavior:
At this point it'll trigger the 'required' rule from the 'Password confirmation' field.
Expected behavior
I would not expect a confirmed rule to be fired until all previous rules are satisfied if
bails
is true.Demo link
As above.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: