ant-design / ant-design/pro-components

🐛[BUG] ProTable 开启虚拟列表后报错”React does not recognize the `offsetX` prop on a DOM element“

Open
#8,634 0 comments 0 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 描述
ProTable 开启虚拟列表后报错”React does not recognize the `offsetX` prop on a DOM element“
![image](https://github.com/user-attachments/assets/a0a2ce85-9527-4020-bc87-cdfce21c696d)

### 📷 复现步骤

```

```

### 🏞 期望结果

不会报错。

### 💻 复现代码

### © 版本信息

"@ant-design/pro-table": "^3.16.6"
Edge@126.0.2592.102 (正式版本) (64 位)
开发环境:Windows10

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the warning with ProTable's virtual mode, scroll values, and either request or dataSource as shown in the issue. Trace the virtual-list rendering path and verify the completed change by confirming the offsetX warning no longer appears.

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.