mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #11287] [MERGED] fix(chat): resolve duplicate collapsible IDs causing citation modal failures #45750
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/11287
Author: @Youggls
Created: 3/6/2025
Status: ✅ Merged
Merged: 3/7/2025
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
9cc9df3fix(chat): resolve duplicate collapsible IDs causing citation modal failures📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Messages/Citations.svelte(+1 -1)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+1 -1)📄 Description
Fix an issue where clicking inline citations in subsequent chat messages failed to open the citation modal when multiple collapsible sections are present.
The root cause was duplicate "collapsible-sources" IDs assigned to all Collapsible components. This led document.getElementById() to always return the first instance, preventing subsequent messages from opening their CitationModal.
Changes:
Affected components:
This ensures each chat message's sources are independently collapsible and maintains proper citation modal binding throughout message history.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.