Open DavidRnR opened 10 months ago
Waiting for the fix on https://github.com/minop1205/react-dnd-treeview/pull/222
Thank you.
This is indeed a bug. I was able to implement a workaround by passing the hasChild
and isDropTarget
render props to the parent component and rendering it there myself:
{!hasChild && isDropTarget && (
<div style={{ position: "relative" }}>
<Placeholder />
</div>
)}
(The position:relative wrapper being necessary because Placeholder contains position:absolute styling.)
I'm working in a real project using this awesome library. Thank for your work @minop1205 and all the community.
There is a bug when the Parent has not got any child, so the placeholder doesn't show up. It's not visible. But, I can drop the node anyways.
To Reproduce Steps to reproduce the behavior:
Expected behavior Placeholder should shows up when the parent has no children and the node is allowed to drop.
Video demo https://github.com/minop1205/react-dnd-treeview/assets/21180828/aee8b2f4-24c9-4efa-8043-b92c57b6f5bc
Maybe "visible" is not right?
Thank you.