Skip to content
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

[Bug] ReactVTable.ListTable onReady调用时,会把customCellStylePlugin清空,是plugin本身就应该如此吗,文档中没看到plugin的具体流程 #3506

Open
HiveMe opened this issue Mar 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@HiveMe
Copy link

HiveMe commented Mar 3, 2025

Version

1.16.2

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/nxyt76

Steps to Reproduce

1.选中单元格,可以看到表头已高亮customCellStylePlugin里面的customCellStyle、customCellStyleArrangement均已正确设置(需要在console里查看customCellStylePlugin状态。)

Image

2.点击按钮展示弹窗
3.弹窗展示的时候,onReady会被调用,返回的tableInstance里面的customCellStylePlugin里面的customCellStyle、customCellStyleArrangement都被清空了,导致当前选中区域表头高亮消失,且关闭弹窗之后,高亮也不会 再显示

Image

Current Behavior

展示弹窗时,customCellStylePlugin状态被清空,导致当前选中区域表头高亮消失,且关闭弹窗之后,高亮也不会 再显示

Expected Behavior

展示弹窗时,customCellStylePlugin状态保持,当前选中区域表头高亮不应消失,且关闭弹窗之后,再次选择其他弹窗时,也能继续展示高亮

Environment

- OS:win10
- Browser:edge最新
- Framework:react 18.3

Any additional comments?

No response

@HiveMe HiveMe added the bug Something isn't working label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants