Skip to content

<md-checkbox> indeterminate state cannot be applied after the element is attached #561

Description

@SvetlozarValchev

It seems that the checkbox's indeterminate state (which corresponds to value=null) is not available once the element is attached. You can initially set it to indeterminate, but you cannot set to indeterminate state with value changes.
From the code here, you can see that the value is checked only on attached, and it cannot be set to indeterminate on subsequent value changes:

if (this.checked === null) {
this.checkbox.indeterminate = true;
} else {
this.checkbox.indeterminate = false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions