react-sortablejs icon indicating copy to clipboard operation
react-sortablejs copied to clipboard

[bug] Cannot get element inside nested container

Open lujiewei521 opened this issue 3 years ago • 2 comments

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

lujiewei521 avatar Oct 14 '22 10:10 lujiewei521

Hi! Can you put your code?

elsoldevandreyg avatar Dec 11 '22 22:12 elsoldevandreyg

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

MaximGordiyenko avatar Dec 01 '23 12:12 MaximGordiyenko