mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #1853] [MERGED] fix: modal should not close when dragging from inside of modal #36444
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/1853
Author: @domsleee
Created: 4/29/2024
Status: ✅ Merged
Merged: 4/29/2024
Merged by: @tjbck
Base:
dev← Head:fix/modal-closing-on-mouseup📝 Commits (1)
d4339fefix: modal should not close when dragging from inside of modal📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/common/Modal.svelte(+2 -2)📄 Description
Description
Closes #1852.
Use
mousedownevent instead ofclickevent to prevent modal window from closing onmouseupunexpectedly.Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.