G2 icon indicating copy to clipboard operation
G2 copied to clipboard

饼状图给label添加点击事件会走两遍

Open zhoustudent opened this issue 4 years ago • 3 comments

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

直接点击label就可以

Environment Info
g2 4.1.7
System -
Browser -

zhoustudent avatar Jan 21 '21 06:01 zhoustudent

@zhoustudent 感谢反馈,已经收到多个这类两次事件触发的 issue,我会全部一次处理掉。

目前先暂时添加一个 debounce 来避免多次执行吧。

hustcc avatar Jan 29 '21 06:01 hustcc

好,处理掉后,还希望能同步下

zhoustudent avatar Feb 09 '21 07:02 zhoustudent

@connono 这个 demo ,可以尝试下定位原因

visiky avatar Feb 11 '22 04:02 visiky

Sorry, due to problems in the program's architecture design, we are unable to effectively fix the issues. But it is fixed in G2 5.0, you can have a try.

hustcc avatar Aug 22 '23 11:08 hustcc