diff --git a/src/client/scripts/select-file.ts b/src/client/scripts/select-file.ts index 65232d3daa..462bdae9c0 100644 --- a/src/client/scripts/select-file.ts +++ b/src/client/scripts/select-file.ts @@ -41,7 +41,15 @@ export function selectFile(component: any, src: any, label: string | null, multi }).finally(() => { dialog.close(); }); + + // 一応廃棄 + (window as any).__misskey_input_ref__ = null; }; + + // https://qiita.com/fukasawah/items/b9dc732d95d99551013d + // iOS Safari で正常に動かす為のおまじない + (window as any).__misskey_input_ref__ = input; + input.click(); };