-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Nested data structure will not return relatedContext using onMove for the first drag operation? #419
Comments
Also experiencing this problem! |
Could you check using version 2.23.0 solution for issue #603 should fix it. |
The problem is always here where we use nested draggable. The methode "getUnderlyingPotencialDraggableComponent" doesn't return the good component.
|
@David-Desmaisons, the fix you mention above does not fix the OP bug - it is still happening with 2.23.2. I have the same problem - dragging into another element (nesting) produces an (almost) empty relatedContext object - 'list' is undefined, "index" and "element" are missing, "component" is bogus. |
Jsfiddle link
https://jsfiddle.net/v8gme77z/317/
Step by step scenario
I need the relatedContext inside the onMove function, but it seems that the first drag for every nested list to another returns me the list is
undefined
.Actual Solution
There is no property
list
orelement
property insiderelatedContext
on the first drag operation within nested draggable componentsExpected Solution
I need those properties to be defined on the first drag operation.
Is this issue due to the fact that is has a nested list data structure? As simple one dimensional arrays return the expected value on first drag.
The text was updated successfully, but these errors were encountered: