From ce207190cdf394e0da5d86f306ceae5f19b410cf Mon Sep 17 00:00:00 2001 From: Shyam Chen Date: Mon, 22 Apr 2024 10:22:59 +0800 Subject: [PATCH] feat(ui/chat): automatically focus on the chat box when clicking edit (#102) --- ui/src/components/chat-box/ChatBox.vue | 1 + ui/src/components/chat-bubble/ChatBubble.vue | 24 ++++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ui/src/components/chat-box/ChatBox.vue b/ui/src/components/chat-box/ChatBox.vue index 028ecf58..1a2da213 100644 --- a/ui/src/components/chat-box/ChatBox.vue +++ b/ui/src/components/chat-box/ChatBox.vue @@ -121,6 +121,7 @@ watch( typing.value = false; } }, + { immediate: true }, ); const flux = reactive({ diff --git a/ui/src/components/chat-bubble/ChatBubble.vue b/ui/src/components/chat-bubble/ChatBubble.vue index 91d2d8ee..40ba965a 100644 --- a/ui/src/components/chat-bubble/ChatBubble.vue +++ b/ui/src/components/chat-bubble/ChatBubble.vue @@ -1,5 +1,6 @@