SortableJS / react-sortablejs

React bindings for SortableJS
http://sortablejs.github.io/react-sortablejs/
MIT License
1.98k stars 206 forks source link

[bug] Cannot get element inside nested container #251

Open lujiewei521 opened 1 year ago

lujiewei521 commented 1 year ago

Describe the bug Unable to find the dom. In the nested container, I want to know my current container and the dom.

To Reproduce Steps to reproduce the behavior: 1: On the onMove event, I return false, so that I can know what container I am in and operate the data myself. There is no problem in the outer container, but in the nested container, I cannot get information. As shown in the following figure, I can only get information outside the nested container

Expected behavior onMove = (evt) => { //. evt.to && evt.related is wrong return false } Actually, I just put my mouse on the input, but I got the parent Dom

截图_1665740992967 截图_16657410187042

Information The behavior does not meet my needs, so I want to change the data myself, but I need to know the behavior information of operating the dom, drag the component's index, and place it in the component container

Versions - Look in your package.json for this information: react-sortable = ^6.1.4 react = ^18.2.0 sortablejs = ^1.15.0

Additional context Add any other context about the problem here.

https://user-images.githubusercontent.com/54343412/195820460-d6cdfb70-479f-41ab-85bf-73611f8d539f.mov

elsoldevandreyg commented 1 year ago

Hi! Can you put your code?

MaximGordiyenko commented 7 months ago

I have same problem with render specific element in the nested child.