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

[question] Is there a way to drop on a collapsed parent item?

Open mattch opened this issue 1 year ago • 1 comments

Current behavior: Dragging an item over a collapsed item only allows you to move the dragged item above or below the collapsed item. You can't drop the dragged item on the collapsed item as a way to add it as a child of the collapsed item.

Desired behavior: Dragging an item over a collapsed item would highlight the collapsed item as an indicator that the dragged item can be dropped on the collapsed item. Dropping an item on the collapsed item would add it as the first child of the collapsed item.

Desired behavior 2: Another option would be to allow the dragged item to be able to indent (move to the right and indicate becoming a child) with collapsed items just like they work with expanded items or items without children.

Is this feature already available? If not, has anyone implemented a workaround for this?

mattch avatar Jan 27 '24 02:01 mattch

I assume there's not a way to do this now. Thoughts about making this a feature request?

It's standard behavior for a folder system to be able to drag into a collapsed folder.

mattch avatar Feb 11 '24 18:02 mattch