Description
Provide a general summary of the feature here
As the title says, allow disabling drag or drop on a single gridlist item.
I saw the disabledBehavior
property, but if I disable drag for an item I also disable selection, and I don't want that.
Another idea I had is to filter it out the item to deactivate in the getItems
function that I pass to useDragAndDrop
.
With this, although I get the dragEvent to have no content or data to drag, I can still drag the item.
In other words, data-drop-target
, react-aria-DropIndicator
and renderDragPreview
still appear.
I know that in renderDragPreview
I could return an empty div for example, but the mouse would still show that something is being dragged, and the drop-target/indicator still activates.
π€ Expected Behavior?
Allow disabling drag or drop on a single gridlist item
π― Current Behavior
It is not possible to disable drag or drop on a single gridlist item
π Possible Solution
No response
π¦ Context
a little context about my use case, because I think it may be helpful.
I'm trying to fake a Tree with a gridlist (turning the nesting level into an indent).
The Home element has some peculiarities:
β I don't want it to be draggable.
β I don't want to be able to drop "before" or "after" it (onReorder).
β
I want it to be able to drop "inside" it (onItemDrop).
Note: this issue come from this discussion: #5697 (reply in thread)
π» Examples
No response
π§’ Your Company/Team
No response
π· Tracking Issue
No response