How do I disable the reordering of an element in react-sortable-hoc. Passing disabled prop to SortableListItem doesn't work properly

Viewed 17

I have my code here and I am trying to restrict the change of order of Item 2. Passing disabled prop doesn't allow me to drag the Item2, but if I drag/drop elements above/below Item2, then the order of Item2 also gets changed. How can I restrict that from happening?

0 Answers
Related