react-component / react-component/tree

Unable to drop a node just below the parent node which has expanded children

Open
#937 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

Please see attached video for reference. I want to drop "parameters" node at the same level as "functions" node just below it. But its not happening. It always drop it inside the 'functions' node as its child. Any way around for this?
Video: https://uploadnow.io/f/XD44Hyf

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

Start by reproducing the drag-and-drop behavior shown in the attached video for an expanded tree. Trace the tree's drop-target calculation and verify that dropping "parameters" below "functions" places it at the same level rather than inside "functions"; done means the sibling placement works consistently.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.