react-component / react-component/tree

Drag n Drop - supress expansion

Open
#671 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 suppress the expansion of un-expanded nodes while dragging? We limit re-sorting of items only to siblings of a node. We don't allow dropping outside of this area, so not up or down any levels. If an un-expanded sibling has nodes under it, hovering the drag over that sibling will cause it to expand. If a sibling has a large number of nodes under it this can make finding a drop area difficult.

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

The issue names no file or test. Reproduce dragging over an unexpanded sibling in the React tree and inspect the existing drag-and-drop behavior; done means hovering does not expand nodes when drops are restricted to siblings, while sibling reordering still works.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.