Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SvetlozarValchev opened this issue Mar 23, 2020 · 0 comments

Comments

@SvetlozarValchev
Copy link

SvetlozarValchev commented Mar 23, 2020

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant