Skip to content

fix: delete dialog freeze — defer AlertDialog after DropdownMenu closes#38

Merged
kurt-croix merged 1 commit into
masterfrom
fix/delete-freeze-v2
Apr 30, 2026
Merged

fix: delete dialog freeze — defer AlertDialog after DropdownMenu closes#38
kurt-croix merged 1 commit into
masterfrom
fix/delete-freeze-v2

Conversation

@kurt-croix

Copy link
Copy Markdown
Owner

Root cause: clicking Delete in the DropdownMenu immediately set deletingReport state, opening the AlertDialog while the DropdownMenu's DismissableLayer was still active. The two radix dismissable layers conflicted, leaving pointer-events blocked on the rest of the page after the AlertDialog closed.

Fix: setTimeout(0) on the onDelete callback so the DropdownMenu finishes its close animation before the AlertDialog opens. No more layer conflict.

Root cause: clicking Delete in DropdownMenu immediately set deletingReport,
opening AlertDialog while DropdownMenu's DismissableLayer was still active.
The two radix layers conflicted, leaving pointer-events blocked after close.

Fix: setTimeout(0) on the onDelete callback so the DropdownMenu finishes
its close animation before AlertDialog opens. Also simplifies back to
direct fire-and-forget delete (no pendingDelete/useEffect needed).
@kurt-croix
kurt-croix force-pushed the fix/delete-freeze-v2 branch from e68b6fa to 72fdd27 Compare April 30, 2026 20:07
@kurt-croix
kurt-croix merged commit 78745ad into master Apr 30, 2026
9 of 10 checks passed
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