Fixes#22783: Clicking the Delete (trash) button in the Memory management modal triggers event bubbling, causing the parent click handler to open the Edit modal for the already-deleted memory.
Added |stopPropagation modifier to both the Edit and Delete button on:click handlers in ManageModal.svelte to prevent the click event from propagating to parent elements.
Test plan
Open Settings > Personalization > Manage (Memory)
Click the Delete (trash) icon on a memory entry
Verify the memory is deleted and the Edit modal does NOT open
Click the Edit (pencil) icon on a memory entry
Verify only the Edit modal opens without any duplicate event issues
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license and I agree to the Open WebUI Contributor License Agreement.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/22829
**Author:** [@xr843](https://github.com/xr843)
**Created:** 3/19/2026
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix/22783-memory-delete-event-bubbling`
---
### 📝 Commits (1)
- [`f99531a`](https://github.com/open-webui/open-webui/commit/f99531a200b2b621311005f0991b05147117a2b3) fix: prevent event bubbling on memory delete/edit buttons (#22783)
### 📊 Changes
**1 file changed** (+2 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/chat/Settings/Personalization/ManageModal.svelte` (+2 -2)
</details>
### 📄 Description
## Summary
- Fixes #22783: Clicking the Delete (trash) button in the Memory management modal triggers event bubbling, causing the parent click handler to open the Edit modal for the already-deleted memory.
- Added `|stopPropagation` modifier to both the Edit and Delete button `on:click` handlers in `ManageModal.svelte` to prevent the click event from propagating to parent elements.
## Test plan
- [ ] Open Settings > Personalization > Manage (Memory)
- [ ] Click the Delete (trash) icon on a memory entry
- [ ] Verify the memory is deleted and the Edit modal does NOT open
- [ ] Click the Edit (pencil) icon on a memory entry
- [ ] Verify only the Edit modal opens without any duplicate event issues
Closes #22783
---
### CLA Confirmation
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license and I agree to the Open WebUI Contributor License Agreement.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22829
Author: @xr843
Created: 3/19/2026
Status: ❌ Closed
Base:
dev← Head:fix/22783-memory-delete-event-bubbling📝 Commits (1)
f99531afix: prevent event bubbling on memory delete/edit buttons (#22783)📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/chat/Settings/Personalization/ManageModal.svelte(+2 -2)📄 Description
Summary
|stopPropagationmodifier to both the Edit and Delete buttonon:clickhandlers inManageModal.svelteto prevent the click event from propagating to parent elements.Test plan
Closes #22783
CLA Confirmation
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license and I agree to the Open WebUI Contributor License Agreement.
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.