clauderic / clauderic/react-sortable-hoc

disabled option still allows an element to move

Open
#648 3 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

I see with `disabled` option the element is not draggable anymore but still moves when I drag another element over it. How can I make it "fixed" position and not let it change the order.
In my case, I need to set the first item fixed, so it should not be draggable and unsortable.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the `disabled` option is handled during sorting and how an item changes order when another item is dragged over it. Reproduce the case with the first item disabled, then verify that it remains fixed, cannot be dragged, and does not change position when the other items are reordered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.