Using React Draggable for dragging list items.

Open
#703 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

No repository file or test is named. Start by reviewing the react-draggable API and the linked react-beautiful-dnd behavior, then determine whether automatic repositioning and moving items between lists fit this component's scope; done would be a clearly documented recommended approach or a defined feature proposal.

Written by the indexing model from the issue text.

Description

Hi,

I want to use react-draggable in my project for dragging list items, from one list to another list and also within a list. For this use case, react-beautiful-dnd provides an easy to use API. The issue is I am already using react-draggable in my project where I freely dragging a Modal on the screen, due to this I do not want to add one more drag and drop related library in my project.
I find one blog which uses react-draggable for dragging list items within a list: https://www.copycat.dev/blog/react-draggable/
But this is not handling the automatic repositioning of list items like react-beautiful-dnd handles (ref: https://user-images.githubusercontent.com/2182637/53614150-efbed780-3c2c-11e9-9204-a5d2e746faca.gif)

Is there any recommended way which I can use to build list item dragging use case using react-draggable?

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.