Description
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
- Select any item from the list
- Click the button to toggle the disabled state of the selection list
- Observe the styles of each item; they remain active
- Click any item; the style toggles to the expected disabled style
- Click the button to toggle the disabled state of the selection list
- Click any item; the style toggles to the expected enabled style
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 expected
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.2.3
Material 5.2.0
TypeScript 2.6.2