mirror of
https://github.com/usememos/memos.git
synced 2026-01-07 00:45:32 +08:00
fix: upload image in iOS safari
This commit is contained in:
parent
12a48ae2db
commit
f7aca99d52
2 changed files with 2 additions and 2 deletions
|
|
@ -227,9 +227,9 @@ const MemoEditor: React.FC<Props> = () => {
|
|||
editorRef.current?.insertText(``);
|
||||
}
|
||||
}
|
||||
document.body.removeChild(inputEl);
|
||||
};
|
||||
inputEl.click();
|
||||
document.body.removeChild(inputEl);
|
||||
}, []);
|
||||
|
||||
const handleFullscreenBtnClick = () => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue