mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #16061] [MERGED] fix: prevent error when autoscrolling in FloatingButtons #47066
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16061
Author: @silentoplayz
Created: 7/27/2025
Status: ✅ Merged
Merged: 7/30/2025
Merged by: @tjbck
Base:
dev← Head:fix/autoscrolling-in-FloatingButtons📝 Commits (1)
1d85729fix: prevent error when autoscrolling in FloatingButtons📊 Changes
1 file changed (+34 additions, -11 deletions)
View changed files
📝
src/lib/components/chat/ContentRenderer/FloatingButtons.svelte(+34 -11)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
TypeErrorandDOMExceptionerrors in the console when navigating to a new chat while a local model was generating a response in the "Ask" or "Explain" modal.Changed
askHandlerandexplainHandlerfunctions inFloatingButtons.sveltenow store theAbortControllerfor thefetchrequest.onDestroylifecycle hook has been added toFloatingButtons.svelteto abort thefetchrequest when the component is unmounted.try...catchblocks inaskHandlerandexplainHandlerhave been updated to gracefully handleDOMExceptionerrors with the nameAbortError.Fixed
autoScrollfunction inFloatingButtons.sveltenow checks if theresponseContainerelement exists before attempting to access its properties.Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.