The validateMethod will not run the code that generates any validity state when using the noValidate attribute on the auro-input unless the error attribute is used to force an error state.
However, the validate() method still runs and fires the event saying it validated. It just skips over the actual validation logic using an if statement.
The event should only fire when that logic is executed or the element has a custom error defined using the error attribute.
To Reproduce
Steps to reproduce the behavior:
Execute the input with the required and noValidate attribute set.
Describe the bug
The validateMethod will not run the code that generates any
validity
state when using thenoValidate
attribute on the auro-input unless theerror
attribute is used to force an error state.However, the
validate()
method still runs and fires the event saying it validated. It just skips over the actual validation logic using anif
statement.The event should only fire when that logic is executed or the element has a custom error defined using the
error
attribute.To Reproduce
Steps to reproduce the behavior:
required
andnoValidate
attribute set.auroInput-validated
Expected behavior
The
auroInput-validated
should not fire