-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add manual validation trigger #79
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- custom-elements.json: Language not supported
Comments suppressed due to low confidence (1)
src/auto-check-element.ts:112
- [nitpick] The event name 'triggerValidation' should follow a consistent naming convention.
input.addEventListener('triggerValidation', changeHandler)
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! 👏🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This adds a method to the web component to manually trigger the auto-check element to validate the input. This is useful for validating pre-populated fields on a form as the auto-check element does not currently validate fields if they have not been changed since load. Using this method, we can force the auto-check element to validate the input as needed.
(For Hubbers) see internal issue: github/new-user-experience#292