fix: add prefer-dom-node-append rule (#5108)

This commit is contained in:
LongYinan
2023-11-29 04:43:39 +00:00
parent 123f091e5b
commit 23cfc58fe2
10 changed files with 12 additions and 11 deletions
@@ -231,7 +231,7 @@ const ImagePreviewModalImpl = (
const a = document.createElement('a');
a.href = downloadUrl;
a.download = block.id ?? 'image';
document.body.appendChild(a);
document.body.append(a);
a.click();
document.body.removeChild(a);
}
+1 -1
View File
@@ -40,7 +40,7 @@ const Outline = () => {
ref={useCallback((container: HTMLDivElement | null) => {
if (container) {
assertExists(tocPanelRef.current);
container.appendChild(tocPanelRef.current);
container.append(tocPanelRef.current);
}
}, [])}
/>