-
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
🐛重写表格事件遇到扩展问题 #2791
Labels
💤 inactive
不活跃的 Issue 或 PR, 30天没有回复
Comments
你好 @linwaiwai,请编辑你的 issue 标题, 一个言简意赅的 issue 标题可以节省大家的时间, 请不要将标题当做正文, 或者为空。 Hello, @linwaiwai, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty. |
看起来你已经修复了, 就是把 S2/packages/s2-core/__tests__/unit/interaction/root-spec.ts Lines 566 to 591 in c8ebc98
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🏷 Version
Sheet Type
🖋 Description
重写表格事件遇到扩展问题。
重写的CustomDataCellMulitSelection需要禁用系统内置的DataCellClick,如果不改写S2代码,则需要禁用代码:
但是S2在点击画布会调用resetState将intercepts重置,禁用的位置仅有bindEvents位置可以调用。系统DataCellClick在初始化的时候即会调用bindEvents,使用on函数进行监听的。所以在S2在root.ts中即使将其replace了但是改函数依然是生效的。
⌨️ Code Snapshots
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
需要将调用bindEvents的时机调后,仅仅调用已经生效被复写的interactions即可。
😅 Current Behavior
所以该代码时间无法进行内置的Click的重写。
💻 System information
The text was updated successfully, but these errors were encountered: