This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
checkbox: clicking links in labels also toggles the value #10823
Copy link
Copy link
Open
Labels
P3: importantImportant issues that really should be fixed when possible.Important issues that really should be fixed when possible.for: internal contributorThe team will address this issue and community PRs are not requested.The team will address this issue and community PRs are not requested.g3: reportedThe issue was reported by an internal or external product team.The issue was reported by an internal or external product team.needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitytype: bug
Milestone
Description
Actual Behavior:
What is the issue? *
If anmd-checkbox
has a text or a label that contains a link, clicking the link (either with_target="blank"
to open in a new tab, or Ctrl-click) also toggles the checkbox.What is the expected behavior?
Not toggle the checkbox. This is the behavior of the native<input type="checkbox">
.
CodePen (or steps to reproduce the issue): *
CodePen Demo which shows your issue:
https://codepen.io/anon/pen/VzeoJODetails:
Demo is set up to show the different behaviors. Follow the instructions in the text.
AngularJS Versions: *
AngularJS Version:
1.6.4AngularJS Material Version:
1.1.4
Additional Information:
Browser Type: *
ChromeBrowser Version: *
59.0.3071.115 (Official Build) (64-bit)OS: *
Ubuntu 14.04Stack Traces:
N/A
Metadata
Metadata
Assignees
Labels
P3: importantImportant issues that really should be fixed when possible.Important issues that really should be fixed when possible.for: internal contributorThe team will address this issue and community PRs are not requested.The team will address this issue and community PRs are not requested.g3: reportedThe issue was reported by an internal or external product team.The issue was reported by an internal or external product team.needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitytype: bug