google / google/material-design-lite
Checkbox with required set breaks HTML5 form validation messages in at least Chrome.
Open
Checkbox
feature-request
MD Guidance Needed
- Dominant language
- HTML
- Stars
- 32.2k
- Forks
- 4.9k
- PR merge metrics
- No merged PRs in 30d
Description
If you have a checkbox in a form that looks something like this:
``
And try to submit the form before ticking the checkbox you get a HTML5 form validation error message shown (as expected), but it disappears almost immediately due to whatever manipulations on the element the event handlers attached to the checkbox by MDL are doing.
Only tested on Chrome, other browsers may behave differently given the reasons for removing the floating validation tooltip may well be browser specific.
Contributor guide
Assessment
This issue has not been assessed yet.