From d40f1f6328398d1ab3a76d13a07539ce874630db Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 29 Sep 2021 14:06:46 +0200 Subject: [PATCH] Force blur the editor after replying with a message See https://community.woltlab.com/thread/292195-probleme-mit-opera-mobile-unter-android/ --- ts/WoltLabSuite/Core/Ui/Message/Reply.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ts/WoltLabSuite/Core/Ui/Message/Reply.ts b/ts/WoltLabSuite/Core/Ui/Message/Reply.ts index 0deada02a1..98dfe9145a 100644 --- a/ts/WoltLabSuite/Core/Ui/Message/Reply.ts +++ b/ts/WoltLabSuite/Core/Ui/Message/Reply.ts @@ -278,6 +278,8 @@ class UiMessageReply { // causing the keyboard to vanish, but the focus remains inside the editor. window.setTimeout(() => { const editor = document.activeElement?.closest(".redactor-layer"); + if (editor && editor instanceof HTMLElement) { + editor.blur(); } }, 50); } -- 2.20.1