We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
示例代码
由 antd 定位到这里。 相关issuse:ant-design/ant-design#31319
分析代码后发现,主要是由于数据变更时未刷新横向滚动条状态导致的。
table/src/Table.tsx
Lines 497 to 501 in e26c552
将上面引用的代码作以下调整(在 useEffect 中添加 data订阅 ),似乎可以解决这个问题。
useEffect
data
React.useEffect(() => { if (horizonScroll) { triggerOnScroll(); } }, [horizonScroll, data]);
请评估影响,没有问题的话,稍后我将发起PR
The text was updated successfully, but these errors were encountered:
fix: Sync scroll bar when data change (react-component#646)
e84e7c5
PR is welcome
Sorry, something went wrong.
fix: Sync scroll bar when data change (#646) (#647)
5b60558
No branches or pull requests
示例代码
由 antd 定位到这里。
相关issuse:ant-design/ant-design#31319
分析代码后发现,主要是由于数据变更时未刷新横向滚动条状态导致的。
table/src/Table.tsx
Lines 497 to 501 in e26c552
将上面引用的代码作以下调整(在
useEffect
中添加data
订阅 ),似乎可以解决这个问题。请评估影响,没有问题的话,稍后我将发起PR
The text was updated successfully, but these errors were encountered: