fix: upload image in iOS safari

This commit is contained in:
Steven 2022-09-03 00:10:50 +08:00
parent 12a48ae2db
commit f7aca99d52
2 changed files with 2 additions and 2 deletions

View File

@ -227,9 +227,9 @@ const MemoEditor: React.FC<Props> = () => {
editorRef.current?.insertText(`![](${url})`);
}
}
document.body.removeChild(inputEl);
};
inputEl.click();
document.body.removeChild(inputEl);
}, []);
const handleFullscreenBtnClick = () => {

View File

@ -84,10 +84,10 @@ const ResourcesDialog: React.FC<Props> = (props: Props) => {
}
}
document.body.removeChild(inputEl);
await fetchResources();
};
inputEl.click();
document.body.removeChild(inputEl);
};
const handlPreviewBtnClick = (resource: Resource) => {