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
When its time to mark a form control as invalid, the attribute’s value should be set to “true”. Ideally, a control should be set to invalid only after a required control has been focused, and then blurred, without a proper string being entered.
If writing a script to check for input validity while a control is still focused, flagging a control as invalid should only happen after a few seconds have passed without a keypress event being fired. People may find it frustrating, and potentially even confusing, if they receive feedback that their entry is invalid while they’re typing.
They sum up:
Be patient before marking a form control as invalid and displaying an inline error message. Ideally wait until the control has lost focus, or there has been an adequate delay in key presses.
As an alternative, please consider documenting this consideration with the default behavior.
The text was updated successfully, but these errors were encountered:
Please consider changing the default value of
validateOnBlur
from false to true.See e.g. https://developer.paciellogroup.com/blog/2019/02/required-attribute-requirements/ for motivation.
They sum up:
As an alternative, please consider documenting this consideration with the default behavior.
The text was updated successfully, but these errors were encountered: