Skip to content

[Feature Request] Support for disabling drag via state #72

@BlueBeret

Description

@BlueBeret

I'd like to request a feature that allows developers to control whether drag-and-drop functionality is enabled or disabled using a state variable. This would be useful in scenarios where dragging should only be allowed under certain conditions (e.g., edit mode toggled on, permissions granted, etc.).

Perhaps something like a disabled or isDraggable prop that can accept a boolean:

<DraggableList items={items} disabled={!isEditMode} />

Let me know if this is something you'd consider, or if there's a workaround I might have missed. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions