Skip to content

Fix modal dismissing when clicking the panel#307

Merged
reinkrul merged 1 commit into
mainfrom
fix/modal-panel-clickable
Jun 25, 2026
Merged

Fix modal dismissing when clicking the panel#307
reinkrul merged 1 commit into
mainfrom
fix/modal-panel-clickable

Conversation

@reinkrul

Copy link
Copy Markdown
Member

Problem

After #306 made the modal panel visible again, clicking the panel or any of its form fields closed the modal.

The backdrop is fixed inset-0 (a positioned element); the panel was static, so the backdrop painted on top of the panel and intercepted clicks. The click hit the backdrop — whose handler triggers cancel — instead of the panel's @click.stop.

Fix

Add relative to the panel so it sits above the backdrop and receives clicks (matches the canonical Tailwind modal markup). One-line change in the shared ModalWindow.vue; applies to all modals.

Assisted by AI

The modal backdrop is fixed inset-0 (a positioned element) while the panel
was static, so the backdrop painted on top of the panel and intercepted
clicks — clicking the panel or its form fields hit the backdrop, which
triggers cancel and closed the modal. Add `relative` to the panel so it
sits above the backdrop and receives clicks, matching the canonical
Tailwind modal markup.

Assisted by AI
@reinkrul reinkrul merged commit b6f1a53 into main Jun 25, 2026
5 checks passed
@reinkrul reinkrul deleted the fix/modal-panel-clickable branch June 25, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant