Skip to content

Commit 84c703e

Browse files
shtse8mrubens
andauthored
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]>
1 parent 0317374 commit 84c703e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
421421
setTextAreaDisabled(true)
422422
setClineAsk(undefined)
423423
setEnableButtons(false)
424-
disableAutoScrollRef.current = false
425424
},
426425
[clineAsk, startNewTask],
427426
)
@@ -468,7 +467,6 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
468467
setTextAreaDisabled(true)
469468
setClineAsk(undefined)
470469
setEnableButtons(false)
471-
disableAutoScrollRef.current = false
472470
},
473471
[clineAsk, startNewTask, isStreaming],
474472
)

0 commit comments

Comments
 (0)