lukasbach/react-complex-tree

Dropping an element at the top of the tree require two attempts

momsse opened this issue · 1 comments

momsse commented

Describe the bug

Dropping an element at the very top of the tree requires two attempts.

To Reproduce

  1. https://rct.lukasbach.com/docs/guides/rendering/
  2. Drag and drop item4 (for eg) on top of v container (it should fail)
  3. Do step 2 again and (it should then work)

Expected behavior

I expect this drag and drop to work on the first try.

Screenshots

drag-and-drop-on-top

This is the live example from the doc (Minimalistic Example for custom render hooks)

Additional context
You can help by providing additional details that are available to you, such as

  • Device if mobile: Desktop
  • Operating System, Browser: Mac OS - Chrome / Safari
  • Version of the Library or tool for which you report the bug: 2.4.4
momsse commented

Closing it. I just understood the interaction with the +. Sorry for the noise.