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
Add the ARIA role to "alert" for error message (accessibility)
If a textarea has a required attribute and contains only blank spaces, it will trigger a "required" error message. This is the most common use case, and we cannot use the "pattern" attribute because it's not supported on textarea.
Improve UX: previously, if you submitted a form with an error like "Input is required", the error message used to stick to the field until you focused out, which was a bit bad from a UX point of view. Now, once a field has been validated once, we attach the validation also on keyup event, so that error message is gone as soon as possible. The reason I don't attach the listener directly on keyup is that because on initial typing, having the error message showing as you type is a bit annoying (especially on fields like "email").