mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-27 23:59:20 -05:00
fix(channels): focus thread input on reply in thread (#33467)
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -88,6 +88,7 @@
|
||||
let scrollEnd = true;
|
||||
let messagesContainerElement = null;
|
||||
let chatInputElement = null;
|
||||
let threadChatInputElement = null;
|
||||
|
||||
let top = false;
|
||||
|
||||
@@ -475,8 +476,10 @@
|
||||
await tick();
|
||||
chatInputElement?.focus();
|
||||
}}
|
||||
onThread={(id) => {
|
||||
onThread={async (id) => {
|
||||
threadId = id;
|
||||
await tick();
|
||||
threadChatInputElement?.focus();
|
||||
}}
|
||||
onPin={pinHandler}
|
||||
onLoad={async () => {
|
||||
@@ -539,6 +542,7 @@
|
||||
<Thread
|
||||
{threadId}
|
||||
{channel}
|
||||
bind:chatInputElement={threadChatInputElement}
|
||||
onPin={pinHandler}
|
||||
onClose={() => {
|
||||
threadId = null;
|
||||
@@ -560,6 +564,7 @@
|
||||
<Thread
|
||||
{threadId}
|
||||
{channel}
|
||||
bind:chatInputElement={threadChatInputElement}
|
||||
onPin={pinHandler}
|
||||
onClose={() => {
|
||||
threadId = null;
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
export let threadId = null;
|
||||
export let channel = null;
|
||||
export let chatInputElement = null;
|
||||
|
||||
export let onClose = () => {};
|
||||
export let onPin = () => {};
|
||||
@@ -27,7 +28,6 @@
|
||||
let top = false;
|
||||
|
||||
let messagesContainerElement = null;
|
||||
let chatInputElement = null;
|
||||
|
||||
let replyToMessage = null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user