-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
Not displaying preview of the dragging item when in a virtualized list #526
Comments
This isn't a bug with @dnd-kit, this is just how virtualized lists work. When items scroll out of view, they get unmounted by the virtual list component. If you're using react-tiny-virtual-list, you can use the <VirtualList
stickyIndices={activeId ? [items.indexOf(activeId)] : undefined} |
If using another virtual library such as react-virtuoso, is there a solution for https://github.com/dnd-kit? |
I'm having an issue of displaying the preview of a dragging item in a virtualized list.
It's when I removed this line
dnd-kit/stories/2 - Presets/Sortable/5-Virtualized.story.tsx
Line 91 in 05d6a78
After dragging and scrolling passes the initial view, the preview of the dragging item will be disappeared.
I am using latest versions:
Demo
dndkit_disappeared_drag_preview_virtualized_list.mp4
The text was updated successfully, but these errors were encountered: