-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unexpected flickering only of some children in draggable #2470
Comments
Anyone? This issue is keeping me from the next release. Would really appreciate any input! |
@felixmpaulus Where is It seems to be only the cards that have been reordered which have the flicker bug, possibly due to re-render of children below Draggable. I think it's more likely to be the behaviour of MUI Checkbox, maybe their defaultChecked state, than a DnD issue. Could you Memoize |
@maximilianorly Thank you! You gave me the idea to replace one of the checkboxes with a classic html I'll go from here and post my findings once I find a sufficient solution! :) |
This can be closed. FYI I was not using MUI but Shopify's Polaris. Thanks for any help ❤️ |
Check your console
Console logs nothing regarding this package.
Similar issues that did not help me:
#2305
#304
#1060
What version of
React
are you using?"react": "^17.0.2"
What version of
react-beautiful-dnd
are you running?"react-beautiful-dnd": "^13.1.0"
What browser are you using?
Version 108.0.5359.124 (Official Build) (arm64)
Demo
I spend 3 hours on this now and am getting nowhere...
Any help would be greatly appreciated!! :)
draggableId
is updated after each reorder to the index of each element.Here is the code:
My reorder function that is called
onDragEnd
:The list component
DragDropContextContainer
DroppableContainer
Each Element
DraggableContainer
Those container-Components exist to get rid of some ESLint errors.
The text was updated successfully, but these errors were encountered: