waterWang commented on issue #21566: URL: https://github.com/apache/echarts/issues/21566#issuecomment-5231880621
The root cause is in zrender's `Handler.ts` click detection, which compares element references (`_downEl !== _upEl`). When `setOption` recreates elements between mousedown and mouseup, the reference comparison always fails and the click never fires. I've submitted a fix in zrender PR #1165: https://github.com/ecomfe/zrender/pull/1165 The fix adds a check using the existing `__zr` pattern (already used in the `mousemove` handler) to detect when `_downEl` was removed from zrender due to element recreation. If the element was removed, the click is allowed to proceed to the new element at the same position. After the zrender fix is merged, echarts needs to update its zrender dependency to pick up the fix. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
