From 2bc86756c8b9b59ef6f89e16175ad4d1b0d6031b Mon Sep 17 00:00:00 2001 From: Xeltica <7106976+Xeltica@users.noreply.github.com> Date: Sun, 31 May 2020 22:19:28 +0900 Subject: [PATCH] =?UTF-8?q?iOS=20Safari=20=E4=B8=8A=E3=81=A7=20=E3=82=A2?= =?UTF-8?q?=E3=82=A4=E3=82=B3=E3=83=B3=E3=81=8A=E3=82=88=E3=81=B3=E3=83=90?= =?UTF-8?q?=E3=83=8A=E3=83=BC=E3=81=AE=E3=82=A2=E3=83=83=E3=83=97=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84?= =?UTF-8?q?=E4=B8=8D=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3=20(#6427?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix #6076 * 参考文献を明記 --- src/client/scripts/select-file.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); };