VisActor / VisActor/VTable

[Bug] 甘特图拖拽超出边界报错

Open
#4,592 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.21.1

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-list-table-forked-llmg6k?file=%2Fsrc%2Findex.js%3A47%2C9

Steps to Reproduce
Image 任务,直接拖拽到标题外部就报错
Current Behavior

直接报错估计是没有
Image

Expected Behavior
  1. 如果是任务超出,向上挪到标题,那么应该是默认挪到是第一行
  2. 其他应该是恢复原先效果
Environment
- Browser:谷歌浏览器
Any additional comments?

No response

Contributor guide

Open the contributing guide

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

Open the linked CodeSandbox and start at src/index.js around the referenced reproduction location. Reproduce dragging a task outside the title area, then trace the resulting error and the gantt drag boundary handling. Done means the drag no longer errors, an out-of-range task moves to the first row, and other behavior is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
data-visualization, 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.