Skip to content

Losing selection of lazy loaded items #19

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

Open
angelaki opened this issue May 12, 2021 · 0 comments
Open

Losing selection of lazy loaded items #19

angelaki opened this issue May 12, 2021 · 0 comments

Comments

@angelaki
Copy link
Contributor

I've modified your stackblitz so the loaded items are reset every time the select opens:

https://stackblitz.com/edit/ng-mat-select-infinite-scroll-zbykih?file=src%2Fapp%2Fapp.component.html

Now when you open the select, check any lazy loaded option, reopen it and select the first one, the last selection gets lost since it is no part of the available elements anymore. I've also reported this issue here bithost-gmbh/ngx-mat-select-search#320 since they already needed to take care of this behavior with their filter. But I think this issue is rather infinite-scroll related.

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