From: Alexander Ebert Date: Wed, 29 Sep 2021 12:06:46 +0000 (+0200) Subject: Force blur the editor after replying with a message X-Git-Tag: 5.4.9_dev_1~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d40f1f6328398d1ab3a76d13a07539ce874630db;p=GitHub%2FWoltLab%2FWCF.git Force blur the editor after replying with a message See https://community.woltlab.com/thread/292195-probleme-mit-opera-mobile-unter-android/ --- 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); }