mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 01:42:53 -05:00
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
This commit is contained in:
1 parent
3bad55fadb
commit
f8a5186480
1 file changed
+2
-3
@@ -1144,9 +1144,8 @@
|
||||
|
||||
const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac
|
||||
|
||||
const suggestionsContainerElement = inputRoot?.querySelector<HTMLElement>(
|
||||
'[id="suggestions-container"]'
|
||||
);
|
||||
const suggestionsContainerElement =
|
||||
document.getElementById('suggestions-container');
|
||||
|
||||
if (!suggestionsContainerElement) {
|
||||
if (
|
||||
|
||||
Reference in new issue
Block a user