From f8a518648049615a4ff39f312b060bcfe56d9b68 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:34:07 +0100 Subject: [PATCH] fix: Enter sends the channel message instead of picking the highlighted emoji or command (#34618) In a channel, typing an emoji shortcode like :swea or a slash command and pressing Enter sent the half-typed text right away. Enter only checked for an open suggestion list inside the message box, but that list is drawn outside it, so it was never found. Enter now picks the highlighted suggestion again, as it does in the main chat input. Fixes #34616 --- src/lib/components/channel/MessageInput.svelte | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/components/channel/MessageInput.svelte b/src/lib/components/channel/MessageInput.svelte index 01152c129b..68377b2c6c 100644 --- a/src/lib/components/channel/MessageInput.svelte +++ b/src/lib/components/channel/MessageInput.svelte @@ -1144,9 +1144,8 @@ const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac - const suggestionsContainerElement = inputRoot?.querySelector( - '[id="suggestions-container"]' - ); + const suggestionsContainerElement = + document.getElementById('suggestions-container'); if (!suggestionsContainerElement) { if (