material icon indicating copy to clipboard operation
material copied to clipboard

checkbox: clicking links in labels also toggles the value

Open nikclayton opened this issue 8 years ago • 1 comments

Actual Behavior:

  • What is the issue? * If an md-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/VzeoJO
  • Details: Demo is set up to show the different behaviors. Follow the instructions in the text.

AngularJS Versions: *

  • AngularJS Version: 1.6.4
  • AngularJS Material Version: 1.1.4

Additional Information:

  • Browser Type: * Chrome
  • Browser Version: * 59.0.3071.115 (Official Build) (64-bit)
  • OS: * Ubuntu 14.04
  • Stack Traces: N/A

nikclayton avatar Jul 31 '17 08:07 nikclayton

This is related to https://github.com/angular/material/issues/11134, which can't be fixed until 1.2.0. I need to investigate whether this can be fixed prior to 1.2.0.

Splaktar avatar Jan 22 '19 20:01 Splaktar