Skip to content

Commit 338c3f7

Browse files
committed
fix: Prevent unnecessary autoscroll when buttons appear (#1280)
1 parent 8fe70e3 commit 338c3f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
421421
setTextAreaDisabled(true)
422422
setClineAsk(undefined)
423423
setEnableButtons(false)
424-
disableAutoScrollRef.current = false
424+
// disableAutoScrollRef.current = false
425425
},
426426
[clineAsk, startNewTask],
427427
)
@@ -468,7 +468,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
468468
setTextAreaDisabled(true)
469469
setClineAsk(undefined)
470470
setEnableButtons(false)
471-
disableAutoScrollRef.current = false
471+
// disableAutoScrollRef.current = false
472472
},
473473
[clineAsk, startNewTask, isStreaming],
474474
)

0 commit comments

Comments
 (0)