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
在使用table sticky时,部分场景下发现
经排查,发现在计算scrollbar是否需要显示时,table的高度与实际渲染的高度不一致导致的。 文件位置rc-table/es/stickyScrollBar.js : onContainerScroll 推测是由于table数据再短时间内发生了变化,计算时只用了第一次传入的table数据。 经修改,加入以下代码可以解决问题
const bodyHeight = scrollBodyRef.current?.offsetHeight ||0 React.useEffect(()=>{ if(bodyHeight){ onContainerScroll(); } },[bodyHeight])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在使用table sticky时,部分场景下发现
经排查,发现在计算scrollbar是否需要显示时,table的高度与实际渲染的高度不一致导致的。
文件位置rc-table/es/stickyScrollBar.js :
onContainerScroll
推测是由于table数据再短时间内发生了变化,计算时只用了第一次传入的table数据。
经修改,加入以下代码可以解决问题
The text was updated successfully, but these errors were encountered: