Skip to content

Commit 028fc46

Browse files
committed
jsdom fix
1 parent 2af4ef5 commit 028fc46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
874874
debounce(
875875
() => {
876876
const container = scrollContainerRef.current
877-
if (container) {
877+
if (container && typeof container.scrollTo === "function") {
878878
container.scrollTo({
879879
top: container.scrollHeight,
880880
behavior: "smooth",

0 commit comments

Comments
 (0)