From 84c703e050937d27267ac3f650aafff635549251 Mon Sep 17 00:00:00 2001 From: Kyle Tse Date: Mon, 7 Apr 2025 03:17:49 +0100 Subject: [PATCH] fix: Prevent unnecessary autoscroll when buttons appear (#1280) (#2334) * fix: Prevent unnecessary autoscroll when buttons appear (#1280) * Remove commented out code --------- Co-authored-by: Matt Rubens --- webview-ui/src/components/chat/ChatView.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 1b33c2003f..cb63d9d9b8 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -421,7 +421,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - disableAutoScrollRef.current = false }, [clineAsk, startNewTask], ) @@ -468,7 +467,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie setTextAreaDisabled(true) setClineAsk(undefined) setEnableButtons(false) - disableAutoScrollRef.current = false }, [clineAsk, startNewTask, isStreaming], )