Skip to content

fix(ui): doc drawer leave without saving modal#16140

Open
ACDR wants to merge 1 commit intopayloadcms:mainfrom
ACDR:fix/doc-drawer-leave-without-saving
Open

fix(ui): doc drawer leave without saving modal#16140
ACDR wants to merge 1 commit intopayloadcms:mainfrom
ACDR:fix/doc-drawer-leave-without-saving

Conversation

@ACDR
Copy link
Copy Markdown

@ACDR ACDR commented Apr 2, 2026

DocumentDrawer also closes via the side "overlay" button and by pressing the Esc key, these drawer exit methods currently do not trigger the "leave without saving" modal when the document has been modified, potentially resulting in data loss.

This change extends #14324 to also trigger the modal when closing via keyboard Esc key or via the close-drawer button.

Related: #13947

DocumentDrawer also closes via the side "overlay" button and by pressing the Esc key - extend change from payloadcms#14324 to trigger the leave without saving modal when closing via keyboard Esc key or via the `close-drawer` button.
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