Commit f7aca99d authored by Steven's avatar Steven

fix: upload image in iOS safari

parent 12a48ae2
...@@ -227,9 +227,9 @@ const MemoEditor: React.FC<Props> = () => { ...@@ -227,9 +227,9 @@ const MemoEditor: React.FC<Props> = () => {
editorRef.current?.insertText(`![](${url})`); editorRef.current?.insertText(`![](${url})`);
} }
} }
document.body.removeChild(inputEl);
}; };
inputEl.click(); inputEl.click();
document.body.removeChild(inputEl);
}, []); }, []);
const handleFullscreenBtnClick = () => { const handleFullscreenBtnClick = () => {
......
...@@ -84,10 +84,10 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => { ...@@ -84,10 +84,10 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
} }
} }
document.body.removeChild(inputEl);
await fetchResources(); await fetchResources();
}; };
inputEl.click(); inputEl.click();
document.body.removeChild(inputEl);
}; };
const handlPreviewBtnClick = (resource: Resource) => { const handlPreviewBtnClick = (resource: Resource) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment