Closed
Description
What is the expected behavior?
Component mat-selection-list
shouldn't change FormControl value when it is removed from view.
What is the current behavior?
Component mat-selection-list
clears FormControl value when it is removed from view.
What are the steps to reproduce?
Material 7.1.1 (version i'm using)
https://stackblitz.com/edit/test-angular-mat-selection-list-7-1-1
Material 7.3.7 (latest)
https://stackblitz.com/edit/test-angular-mat-selection-list-7-3-7
- Open stackblitz console window
- Click "Select All" button
- Click "Toggle View" button
- Observe
FormsControl.valueChanges
logs whenmat-selection-list
is removed from view:
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 7.x.x
Material 7.x.x
Is there anything else we should know?
I don't think so.