fix: add prefer-dom-node-remove rule (#5112)

This commit is contained in:
LongYinan
2023-11-29 04:43:50 +00:00
parent 45690c2756
commit 4dddbbdaee
6 changed files with 8 additions and 7 deletions

View File

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