react-component / react-component/tree
将 node 拖拽到一个展开节点的下方时,drop indicator 很难出现
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
allowDrop 设置了一些条件,具体见复现地址:https://codesandbox.io/p/sandbox/tuo-dong-shi-li-antd-5-12-4-forked-zxk66c?file=%2Fdemo.tsx%3A50%2C7-50%2C16
按照视频所示进行拖拽,我分别试了不展开和展开,发现不展开时比较容易出现 indicator。但一旦打开,就很难出现了。
如果拖拽点往后一点又比较容易出现了
https://github.com/react-component/tree/assets/45704808/15fb0d3a-db9a-42b0-bb14-b3c56c7ab4da
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction, especially demo.tsx around lines 50:7-50:16, and inspect how allowDrop is applied during drag-and-drop. Compare dragging with the node collapsed and expanded, using the attached video as the expected behavior reference. Done means the drop indicator appears reliably below an expanded node under the demonstrated conditions.
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