-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
MatSelectionList disabled input is only checked at creation time #9952
Comments
* Currently if a list option is disabled through the `[disabled]` binding, the disabled option still has the `pointer` cursor. * Fixes that list options are still focusable if disabled. * Fixes that the selection list is still focusable if disabled. Fixes angular#9952
* Currently if a list option is disabled through the `[disabled]` binding, the disabled option still has the `pointer` cursor. * No longer delegates the keydown event to the ListKeyManager when disabled. Right now there can be an exception because all items are disabled. See angular#9981. Fixes angular#9952.
I think this issue should be reopened as it hasn't been fully resolved with 5.2.2. https://stackblitz.com/edit/angular-x4tdc2 If I select items from the list, then set the MatSelectionList Is |
I agree, although it's not even released in The runtime exceptions when using the list key manager are solved. though. Related issue that should also fix the remaining parts of this issue: #9995 |
* Fixes that dynamically changing the `[disabled]` binding does not update the state of the list options (e.g. ripple disabled state; checkbox disabled styling) Fixes angular#9952
* Fixes that dynamically changing the `[disabled]` binding does not update the state of the list options (e.g. ripple disabled state; checkbox disabled styling) Fixes angular#9952
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
MatSelectionList's
disabled
input does not update child list option styles if it is changed.What is the expected behavior?
Changing the
disabled
input should update the appearance of the list's items.What is the current behavior?
List items retain their style.
What are the steps to reproduce?
https://stackblitz.com/edit/angular-x4tdc2
What is the use-case or motivation for changing an existing behavior?
It's not clear whether
disabled
is meant to be a one-time setting or if it is meant to be dynamic. In the former case, the docs should be more clear about it; if it's the latter, the component does not behave as expectedWhich versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.2.3
Material 5.2.0
TypeScript 2.6.2
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: