mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6576] [Issue]: Modals and sheets unexpectedly dismiss when mouse drag or release ends on backdrop #3689
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3689
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @menemorofaan on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6576
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Mouse drag interactions initiated inside modal dialogs (such as selecting text, dragging across inputs, or mouse slips) trigger accidental dialog dismissal if the mouse button is released outside over the dark backdrop.
Expected behavior
Releasing a mouse drag outside the modal container should not close the dialog. A backdrop dismissal should only trigger on an intentional click that begins and ends directly on the backdrop itself.
Actual behavior
Pressing the mouse button (
mousedown) inside the dialog container and releasing it (mouseup) on the backdrop triggers a backdrop dismiss event, abruptly closing the dialog and causing loss of context or uncommitted input.Steps to reproduce
GameCharacterSheet,SummariesEditorModal,ChatImageLightbox, etc.).Environment
Logs, screenshots, or video
N/A (UI interaction behavior)
Additional context
Multiple dialogs (
GameCharacterSheet,ChatImageLightbox,ConversationMessageLightbox,SummariesEditorModal,EncounterModal,MariPromptPreviewModal, andPeekPromptModal) are affected. The existinguseBackdropDismisshook provides the exact guard needed to resolve this across these components.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: