Skip to content

fix: Create project modal closes on accidental backdrop clicks - #130

Open
Roshan931 wants to merge 1 commit into
TesslateAI:mainfrom
Roshan931:prilog/fix-error-backdrop-click-handler-unconditionally-08-21-2026-79263c
Open

fix: Create project modal closes on accidental backdrop clicks#130
Roshan931 wants to merge 1 commit into
TesslateAI:mainfrom
Roshan931:prilog/fix-error-backdrop-click-handler-unconditionally-08-21-2026-79263c

Conversation

@Roshan931

Copy link
Copy Markdown

Fixes #23

Root cause

Backdrop click handler unconditionally closes CreateProjectModal

Changes

  • Track user edits (name typed or template tile picked) in CreateProjectModal and ignore backdrop clicks while the form is dirty; explicit exits (X, Cancel, Escape) still close. Backdrop handler now also ignores clicks that originate inside the dialog. Added a vitest regression suite covering both closing and non-closing paths.

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.

Create project modal closes on accidental backdrop clicks

1 participant