open-webui/src/lib/components
Perry Li 9cc9df3018 fix(chat): resolve duplicate collapsible IDs causing citation modal failures
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.
2025-03-06 10:10:53 +00:00
..
admin enh: enable_code_execution toggle 2025-03-05 19:06:28 -08:00
app refac: app styling 2025-01-19 11:48:05 -08:00
channel refac: audio file handling 2025-02-26 13:09:52 -08:00
chat fix(chat): resolve duplicate collapsible IDs causing citation modal failures 2025-03-06 10:10:53 +00:00
common fix: pinyin keyboard 2025-03-05 19:36:30 -08:00
icons enh: svg diagram download button 2025-02-17 18:50:23 -08:00
layout refac 2025-03-04 17:40:32 -08:00
playground refac 2025-02-15 19:50:40 -08:00
workspace Update ToolkitEditor.svelte 2025-03-04 17:46:24 -05:00
AddConnectionModal.svelte chore: tailwind v4 migration 2025-02-15 19:27:25 -08:00
AddFilesPlaceholder.svelte enh: drag and drop chat exports 2024-10-09 00:13:54 -07:00
ChangelogModal.svelte refac 2025-02-15 19:35:12 -08:00
NotificationToast.svelte refac 2025-02-15 19:50:40 -08:00
OnBoarding.svelte refac 2025-03-04 01:16:08 -08:00