Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:
- I found a serious problem with *cdkVirtualFor, this improved the performance but breaking my functionality, in my selection-list, I will select options by checking the check-box like in the below image, if I select a option and scroll down and scroll up again I am losing the selection.


{{cio.label}}
compareFunction = (option1:string, option2:string)=> option1===option2;
Expected Behavior
What behavior were you expecting to see?
Actual Behavior
What behavior did you actually see?
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue
Steps to reproduce:

{{cio.label}}compareFunction = (option1:string, option2:string)=> option1===option2;
Expected Behavior
What behavior were you expecting to see?
Actual Behavior
What behavior did you actually see?
Environment