antvis/G2

自定义action在销毁时取不到view等上下文信息 #3544

xiaoke-1 posted onGitHub

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

动态移除交互时,action在销毁时需要执行一些操作,比如移除element的状态等,但是在调用action的destroy方法前,content下的view已经被置空了,context的destroy方法截图

When dynamically removing an interaction, the action performs some actions such as removing an element's state, but before calling the action's destroy method, the view under the content is already empty

1627641139(1)

What does the proposed API look like?

先执行action的destroy,在置空view等上下文的信息

First execute the action's destroy, in the context of the null view

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


你的说法是对的,有兴趣来一个 PR 吗?

posted by hustcc over 3 years ago

#3661 @hustcc 提交了一个,不知道提交流程对不对

posted by xiaoke-1 over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests