mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 23:35:24 +00:00
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:
- Modify Collapsible ID generation in Citations.svelte to use unique IDs with "collapsible-${message.id}" pattern
- Update ResponseMessage.svelte's onSourceClick handler to reference the dynamic collapsible IDs
- Ensure proper citation modal binding for each chat message's sources
Affected components:
- Collapsible (expandable content sections)
- CitationsModal (citation detail popup)
This ensures each chat message's sources are independently collapsible and maintains proper citation modal binding throughout message history.
|
||
|---|---|---|
| .. | ||
| admin | ||
| app | ||
| channel | ||
| chat | ||
| common | ||
| icons | ||
| layout | ||
| playground | ||
| workspace | ||
| AddConnectionModal.svelte | ||
| AddFilesPlaceholder.svelte | ||
| ChangelogModal.svelte | ||
| NotificationToast.svelte | ||
| OnBoarding.svelte | ||