Просмотр исходного кода

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 <[email protected]>
Kyle Tse 9 месяцев назад
Родитель
Сommit
84c703e050
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      webview-ui/src/components/chat/ChatView.tsx

+ 0 - 2
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],
 	)