fix(channels): focus thread input on reply in thread (#33467)

This commit is contained in:
G30 authored and GitHub committed 2026-11-01 09:17:48 +09:00
1 parent 08f197ad8d
commit 02df5b092c
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -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;
+1 -1
View File
@@ -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;