JakeSidSmith / react-reorder

Drag & drop, touch enabled, reorderable / sortable list, React component
https://jakesidsmith.github.io/react-reorder/
MIT License
218 stars 58 forks source link

Unable to set reorder to a button #99

Closed lynnjoseph24 closed 3 years ago

lynnjoseph24 commented 5 years ago

Im trying to reorder the elements by using a specific button in the child Component. Im not sure how to do this? Sorry for posting this as an issue. Could somebody help me out as to how to do this?/ Thanks in advance.

JakeSidSmith commented 5 years ago

Hi, @mayheadd. Do you mean you'd like to have a "handle" that is the only part that can be dragged to reorder? This is not currently possible, but I'm in the middle of a re-write (which has pivoted quite a lot), and so this feature should be available in the future.

I'd suggest finding another library for now if you require this ability.

avbentem commented 5 years ago

Just for future readers, one might not need another library with either of the following workarounds:

JakeSidSmith commented 3 years ago

Closing due to lack of response. I assume the above workaround is suitable.