minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent showing placeholder for current element's position while dragging

ngocducdim opened this issue · comments

Hi, I have a problem, when I re-order the element, the placeholder alway show the element's current position (you can see the video, when I drag to bottom direction, the placeholder is showing but that position is current element's position) I don't want this behavior, is there anyway to prevent this?

24.06.2022_17.49.21_REC.mp4

@ngocducdim
It is probably not possible with just the current parameters of the placeholderRender API.
If we can add the hovered node ID to the parameter of the placeholderRender API, it would be possible to determine.

Ok thank you for the reply