-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator do not allow customError #5302
Comments
I think this could be supported by changing this line in the constraint validation mixin to also check the const customError = !!this[privateCustomValidationMessage] || validity.customError; Calling Want to send in a PR? |
Yep, Will send one early next week. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is affected?
Accessibility, Component
Description
A validator using
setCustomValidity
as below will never cause an invalid event to be dispatched.This is due to the Safari workaround here, causing the
customError
flag to always be false.Otherwise new validators are great
Reproduction
https://lit.dev/playground/#gist=2fecd21c77070203e5472131ffc9b199
Workaround
Force an error on another flag, but this is not really nice:
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
Failing in v1.1.1
Browser/OS/Node environment
Latest chrome on linux
The text was updated successfully, but these errors were encountered: