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
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.
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
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.0Additional context Add any other context about the problem here.
https://user-images.githubusercontent.com/54343412/195820460-d6cdfb70-479f-41ab-85bf-73611f8d539f.mov