ant-design / ant-design/pro-components

🐛[BUG] DragSortTable 在有滚动条的页面拖到顶部排序后,页面滚动条会始终回到顶部

Open
#8,050 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

当页面有滚动条时,滚动页面后,将表格底部的项目向上拖动一直滚动条回到顶部,此时页面滚动条无法向下滚动

### 📷 复现步骤
https://github.com/ant-design/pro-components/assets/10346399/495da125-615e-4539-b18e-370e91c7042e

[https://codesandbox.io/p/sandbox/tuo-zhuai-pai-xu-forked-53txq5](https://codesandbox.io/p/sandbox/tuo-zhuai-pai-xu-forked-53txq5)

### 🏞 期望结果

页面功能正常使用

### 💻 复现代码
[https://codesandbox.io/p/sandbox/tuo-zhuai-pai-xu-forked-53txq5](https://codesandbox.io/p/sandbox/tuo-zhuai-pai-xu-forked-53txq5)

### © 版本信息

- ProComponents 版本: 4.6.44
- umi 版本
- 浏览器环境
- 开发环境

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and the DragSortTable drag-and-drop entry point; verify the page-scroll reset after dragging a bottom-row item upward. Done means the page remains scrolled and can continue scrolling normally after sorting.

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.