Skip to content
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

MDC List: Checkbox doesn't toggle when rendered inside list item #4107

Closed
abhiomkar opened this issue Nov 21, 2018 · 2 comments
Closed

MDC List: Checkbox doesn't toggle when rendered inside list item #4107

abhiomkar opened this issue Nov 21, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@abhiomkar
Copy link
Collaborator

Steps to reproduce:

  1. Place checkbox inside mdc list item.
  2. Make sure to add label element that is mapped to checkbox input (using label, for attribute).
  3. Click on the label text, the checkbox is toggled twice.

Reproducible example on stackblitz.

Actual behaviour:

The checkbox should be toggled only once. Works fine when clicked on the area that is not checkbox and label element.

@williamernest
Copy link
Contributor

We could potentially fix this quickly by adding pointer-events: none to label, input[type="checkbox"] elements inside of mdc-list-item elements.

@kfranqueiro
Copy link
Contributor

Closed via #4055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants