mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #22852] [CLOSED] fix: prevent event bubbling on memory edit/delete buttons #26887
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/22852
Author: @futhgar
Created: 3/19/2026
Status: ❌ Closed
Base:
dev← Head:fix/memory-delete-event-bubbling📝 Commits (1)
122be0bfix: prevent event bubbling on memory edit/delete buttons📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Settings/Personalization/ManageModal.svelte(+2 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
on:clickhandler, which opens the Edit Memory modal. This results in the memory being deleted while the Edit modal simultaneously opens for the now-deleted entry, leading to a 404 error if the user attempts to update.Fixed
How it was fixed
Added Svelte's
|stopPropagationevent modifier to both the Edit and Delete buttonon:clickhandlers inManageModal.svelte. This prevents the click event from bubbling up to the parent<div>element that has its ownon:clickhandler for opening the edit modal.This is a minimal, two-line change consistent with the existing pattern used throughout the codebase (e.g.,
FileItem.svelte,Sidebar/SearchInput.svelte,FilesModal.svelte).Steps to reproduce (before fix)
Memory Not found)After fix
Clicking Delete removes the memory and shows the success toast without opening the Edit modal.
Fixes #22783
Additional Information
|stopPropagationmodifier is already used extensively across the codebase for similar parent-child click handler patternsContributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.