Skip to content

DX-2609: fix: close delete confirmation modal after successful deletion#53

Open
ytkimirti wants to merge 1 commit intomasterfrom
DX-2609-fix-list-delete-modal
Open

DX-2609: fix: close delete confirmation modal after successful deletion#53
ytkimirti wants to merge 1 commit intomasterfrom
DX-2609-fix-list-delete-modal

Conversation

@ytkimirti
Copy link
Copy Markdown
Collaborator

Fixes DX-2609: in the Data Browser, deleting a list item left the confirmation popup open, letting users keep clicking Delete and silently delete subsequent items.

Root cause: DeleteKeyModal did not close itself after onDeleteConfirm resolved. The three callsites that use it in uncontrolled mode (display-list.tsx per-row trash, item-actions.tsx dropdown, key-actions.tsx dropdown) had no way to dismiss the dialog.

Fix: call setIsOpen?.(false) after a successful onDeleteConfirm in delete-key-modal.tsx. Stays inside the try so a failed mutation keeps the modal open for retry. The two controlled callsites (sidebar-context-menu.tsx, item-context-menu.tsx) already close manually — those calls become redundant but are harmless.

@linear
Copy link
Copy Markdown

linear Bot commented Apr 27, 2026

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-redis-browser Ready Ready Preview, Comment Apr 27, 2026 6:01am

Request Review

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.

2 participants