mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
issue: Browser console spammed with TypeError: can't access property "scrollHeight", responseContainer is null when navigating away from ask/explain modal as model is responding
#5883
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?
Originally created by @silentoplayz on GitHub (Jul 27, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.18 (
5fbfe2bdca)Ollama Version (if applicable)
v0.9.5 (
5d8c173529)Operating System
Ubuntu 24.04.2 LTS
Browser (if applicable)
Mozilla Firefox Debian Package (mozilla-deb - 1.0) v141.0 (64-bit)
Confirmation
README.md.Expected Behavior
The Open WebUI application should gracefully handle navigation to a new chat or conversation while a local model is actively generating a response within the "Ask" or "Explain" modal, without logging persistent errors to the browser console. The previous modal should close without issue, and no errors related to
scrollHeightorresponseContainerbeing null should occur.Actual Behavior
When a local model is actively responding within the "Ask" or "Explain" modal, navigating to a new chat (by clicking "New Chat") causes a
TypeError: can't access property "scrollHeight", responseContainer is nullto be repeatedly logged (spammed) to the browser console. This error persists until the page is manually refreshed.Steps to Reproduce
This issue is reproduced on a local development environment setup for Open WebUI.
Prerequisites:
Clone the Repository:
Frontend Setup:
.envfor reproduction, default settings are used.)open-webuidirectory):open-webuidirectory):http://localhost:5173. You should see the frontend waiting for the backend. Keep this terminal running.Backend Setup:
backenddirectory):backenddirectory):Access Open WebUI and Observe Issue:
http://localhost:5173).New Chatbutton located at the top-left side of the UI.F12key on the keyboard) and observe the console for the repeatedTypeError.Logs & Screenshots
Screenshot
Additional Information
This error appears to stem from an attempt to access
scrollHeighton aresponseContainerthat has becomenull, likely because the component responsible for the modal's auto-scrolling is trying to update while the modal itself (and its DOM elements) has been unmounted due to the navigation. The issue consistently reproduces with local models and persists, spamming the console until a full page refresh. This behavior suggests a need for better cleanup or conditional rendering logic when modals or components are unmounted mid-operation.