Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

ngChecked Bug with md-checkbox #10468

@drinkspiller

Description

@drinkspiller

I'm experiencing different behavior with an md-checkbox than with a vanilla checkbox and expected they would work the same. The master/slave example from the ngChecked page does not work when the checkboxes are md-checkbox but does work when <input type="checkbox" ...> is used.

Here is a Plunk with the example from the ngChecked documentation but with the ngMaterial dependencies added. It behaves as expected — the 'slave' checkbox can be toggled whether or not the 'master' checkbox is selected.

Now here is a Plunk with the same example but both instances of <input type="checkbox" ...> have been changed to elements (with closing tags). Note that the 'slave' checkbox does not toggle its state when clicked, irrespective of whether the 'master' is selected or not.

Metadata

Metadata

Assignees

Labels

P4: minorMinor issues. May not be fixed without community contributions.g3: reportedThe issue was reported by an internal or external product team.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions