google / google/material-design-lite

Checkbox with required set breaks HTML5 form validation messages in at least Chrome.

Open
#1,718 2 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.