plainheart commented on code in PR #21391:
URL: https://github.com/apache/echarts/pull/21391#discussion_r2567102568


##########
src/component/toolbox/feature/SaveAsImage.ts:
##########
@@ -66,7 +81,7 @@ class SaveAsImage extends 
ToolboxFeature<ToolboxSaveAsImageFeatureOption> {
             $a.href = url;
             const evt = new MouseEvent('click', {

Review Comment:
   Thanks for your explanation. I mean, we can try using `$a.click()` rather 
than manually creating and dispatching a click event, since `$a.click()` 
doesn't need to pass the window object. If this works in micro-frontend 
frameworks, I think we can remove this code block.



-- 
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]

Reply via email to