Skip to content

Checkboxes cannot be checked by clicking on their label #228

Open
@jeyj0

Description

@jeyj0

When opening a site with a checkbox that has a corresponding label tag, clicking on the label (not the checkbox) checks and instantly unchecks the checkbox.

Expected behavior: when clicking on the label, the checkbox should only switch state once.

Minimal HTML to reproduce (both don't work):

<html>
<body>
<input id="check" type="checkbox">
<label for="check">Click me</label>
<label>
<input type="checkbox">
Click me too
</label>
</body>
</html>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

awaiting triageNeeds debugging to know the root cause

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions