Panel is duplicated after panel drag/drop on itself
vasko5petrov opened this issue · comments
Expected Behavior: Dropping a panel on itself should not modify the panel.
Actual Behavior: There seems to be a horizontal and vertical lines within the panel which are really small (1px). When intersected a drop indicator shows up and you can drop the panel on itself. This causes the panel to duplicate with the same ids and content.
Steps to reproduce: https://codesandbox.io/p/sandbox/rc-dock-tabs-issue-g5xjx2
- Start dragging panel with tab "a2" in it (drag the whole panel not the tab)
- Go up, right before reaching the tabs line a drop indicator on the bottom of the panel will appear.
- Going up or down 1px and the drop indicator disappears.
- Drop the panel on this exact 1px line when the drop indicator is visible.
- The whole panel will be duplicated with tab "a2" inside.
This was tested on version "3.0.19" and "3.2.18" of rc-dock.