-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
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
🐛 拖动水平滚动条后部分列头单元格选中状态被重置 #2503
Comments
你好 @xulingling0,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志. Hello, @xulingling0, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs. |
* fix(interaction): 修复表格滚动后, 行列头部分单元格选中高亮效果丢失 close #2503 * chore: 还原 * test: 修复单测 * test: 修复单测 --------- Co-authored-by: Wenjun Xu <[email protected]>
🎉 This issue has been resolved in version @antv/s2-v1.54.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version @antv/s2-react-v1.46.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* fix(interaction): 修复表格滚动后, 行列头部分单元格选中高亮效果丢失 close #2503 * chore: 还原 * test: 修复单测 * test: 修复单测 --------- Co-authored-by: Wenjun Xu <[email protected]>
🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🏷 Version
Sheet Type
🖋 Description
拖动水平滚动条后部分列头单元格选中状态被重置
⌨️ Code Snapshots
🔗 Reproduce Link
https://codesandbox.io/p/sandbox/morning-feather-frcny6?file=%2Findex.tsx%3A11%2C18
🤔 Steps to Reproduce
😊 Expected Behavior
拖动水平滚动条后,希望所有的列头单元格选中状态保留
😅 Current Behavior
拖动水平滚动条后,部分列头单元格选中状态被重置
🤔 Analyze
选中列头后,源码中调用
selectHeaderCell
方法,nodes 未包括非叶子节点的列头通过
highlightNodes
高亮非叶子节点的列头滚动导致单元格状态被重置,拿取的上一步的选中信息,通过
handleSelect
判断是否显示单元格,非叶子节点的列头未命中条件其他
通过
highlightNodes
单独实现非叶子节点的列头选中效果,会导致选择多个列头时,上一个列头的非叶子节点的列头选中状态丢失💻 System information
The text was updated successfully, but these errors were encountered: