From fcbff29d04c394406ff762b20cec344dd4233023 Mon Sep 17 00:00:00 2001 From: Chris Hasson Date: Wed, 30 Jul 2025 16:51:03 +0200 Subject: [PATCH] fix(chat): Prevent input clearing when clicking chat buttons (#6222) Co-authored-by: Chris Hasson Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com> --- webview-ui/src/components/chat/ChatView.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 46790b41ef..bc9c36a6c2 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -731,12 +731,12 @@ const ChatViewComponent: React.ForwardRefRenderFunction handlePrimaryButtonClick(inputValue, selectedImages)}> + onClick={() => handlePrimaryButtonClick()}> {primaryButtonText} @@ -1934,7 +1934,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction handleSecondaryButtonClick(inputValue, selectedImages)}> + onClick={() => handleSecondaryButtonClick()}> {isStreaming ? t("chat:cancel.title") : secondaryButtonText}