Closed yinonov closed 1 year ago
Ok - this is a good discussion.
At the moment I think success
takes precedence. There's a better case for making error
take precedence.
Are we for an error takes all?
they should both be constrained to the other. the logic is
const errorIndicator = isError && not(isSuccess);
const successIndicator = isSuccess && not(isError);
is there a workaround to achieve user-valid
state on reportValidity (post user interaction with control)
Currently, the moment a user "unfocus" or "blurs" out of the element, the validation is running.
user-valid
will be true if there's no error or the element is still pristine
.
@YonatanKra this raises the question of how success can be authored while error should be triggered
Originally posted by @yinonov in https://github.com/Vonage/vivid-3/issues/819#issuecomment-1314946783