react-component / react-component/tree

Droppable without Draggable?

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.3k
Forks
490
Avg merge
3d 17h
Merged PRs (30d)
5

Description

Is there a way to have onDrop without forcing everything to be draggable? I am trying to setup a component for organizing files. Where you can drag a div("file") and drop it on a category in the rc_tree to set its category. But the only way to get onDrop to work is to also allow them to Drag the order of the categories which we don't want.

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.

Research direction

No file, test, or entry point is named. Review the tree component's drag-and-drop API and existing onDrop configuration first, then determine whether external file elements can drop onto categories without enabling category reordering; done means the supported behavior is implemented or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.