Skip to content

MdCheckBox is behaving different to native checkbox #575

@mmrath

Description

@mmrath

Bug, feature request, or proposal: Bug

Links for both native and MdCheckBox version below

What is the expected behavior?

Native Checkbox version
http://plnkr.co/edit/cZbFWOlCeZuj7YdUczPm?p=preview

What is the current behavior?

This is with MdCheckBox
http://plnkr.co/edit/FFpqdNhQfvbUynbPE1ZD?p=preview

What are the steps to reproduce?

  1. Click on the top select all check box for 'Write'
  2. Now click (reset) Write for one of the resource

Native version has the desired behaviour that is, unselect the top most checkbox if one of the below one is unchecked. But with MdCheckBox the change to reset top most checkbox triggers on change event, which is resetting all the below checkboxes.

I don't know which one is correct behaviour or both are correct.

Any help to get the MdCheckBox version working is appreciated.

What is the use-case or motivation for changing an existing behavior?

Get MdCheckBox behave as close to native checkbox as possible

Which versions of Angular, Material, OS, browsers are affected?

alpha 5

Is there anything else we should know?

Bo

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaround

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions