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 <mrubens@users.noreply.github.com>
This commit is contained in:
Kyle Tse 2025-04-07 03:17:49 +01:00 committed by GitHub
parent 0317374acb
commit 84c703e050
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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],
)