react-component / react-component/tree

Drop area does not match node area

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

When I am dragging element over some node it add drop-target class to it. But this drop area doesn't match node area. In examples this difference is not really big, but for me it is about half of the height. It means that if I have folder1 and folder2 and trying to drop element to the top part of folder2 it drop it to the folder1. It is possible to see it on record. I added different background for drop-target class

Is it possible change it somehow to match node and drop area?

https://user-images.githubusercontent.com/25207759/176568450-57220881-abb0-4f93-ada2-d14c16f45684.mov

.

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 source file, test, or entry point is named. Reproduce the drag-and-drop behavior shown in the recording and trace how the drop-target class and drop position are determined; done means the highlighted drop area matches the node area and dropping near the top of folder2 selects folder2.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.