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

Unable to set Select All check box to checked state when all options in list are selected #10

Open
NareshKumarM opened this issue Sep 13, 2019 · 2 comments

Comments

@NareshKumarM
Copy link

Hi Naresh,

I have a mat-select-autocomplete control in one of my app's filters.
It works well with the functionality expected for the filter.
When I reset the filter, i am setting all the options in the list as selected but the Select-All check box next to the search control is does not appear to be checked.

Is there a method to set select-all too checked upon resetting the filter?

stackblitz example : https://stackblitz.com/edit/mat-select-autocomplete-hk7xef

Regards,
Naresh KM

@kovaletsyurii
Copy link

have the same issue(

@NareshKumarM
Copy link
Author

@kovaletsyurii Try this. I tweaked this example according to my requirements and it helped:
https://stackblitz.com/edit/angular-material-select-all?file=src%2Fapp%2Fselect-check-all.component.ts

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

2 participants