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

Selection is not working when combined with virtual scrolling #113

Open
4nshuman opened this issue Nov 18, 2020 · 3 comments
Open

Selection is not working when combined with virtual scrolling #113

4nshuman opened this issue Nov 18, 2020 · 3 comments

Comments

@4nshuman
Copy link

4nshuman commented Nov 18, 2020

Hi there,

I am using the library paired with the virtual scroll, in this case, although the update method is called but the selection is erratic. As soon as I scroll down, the selected array goes to null and the style is not changed.
Has anyone else faced this issue ?

Here's a link to check : https://stackblitz.com/edit/ngx-drag-to-select-virtual-scroll?file=src/app/app.component.html

Could someone please help me with this, is there a workaround ?
Thanks.

@d3lm
Copy link
Owner

d3lm commented Nov 19, 2020

Hey! Wow, that's super strange. I have not used it together with the CDK's virtual scrolling, but I do know that other modules from the CDK like the drag and drop cause very strange behavior, and the often intercept events etc.

I do not know what's going on the your case, and would need to investigate myself. Would you be willing to debug this and try to find out what's causing this? Get to the bottom of this?

Maybe somebody else ran into this issue already and has some insights. Not sure tho.

PR is welcome!

@4nshuman
Copy link
Author

Sure thing. I'll take a look into this and try to debug.

@d3lm
Copy link
Owner

d3lm commented Nov 22, 2020

Thank you very much! Really curious about your findings. If you find the culprit then let's get that fix in.

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