mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: add prefer-dom-node-remove rule (#5112)
This commit is contained in:
@@ -233,7 +233,7 @@ const ImagePreviewModalImpl = (
|
||||
a.download = block.id ?? 'image';
|
||||
document.body.append(a);
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
a.remove();
|
||||
}
|
||||
},
|
||||
[props.pageId, props.workspace]
|
||||
|
||||
Reference in New Issue
Block a user