payloadcms/payload

Document drawers don't prompt the "Leave without saving" modal

Closed this issue · 2 comments

Describe the Bug

When making edits inside a document drawer and then closing it, the leave without saving modal never appears. This makes it easy to lose edits when editing inside a modal.

Link to the code that reproduces this issue

N/A

Reproduction Steps

  1. Create a relationship field on a collection
  2. Open the relationship drawer and make edits
  3. Close the drawer
  4. Not prompted with leave without saving modal

Which area(s) are affected? (Select all that apply)

area: ui

Environment Info

Relevant Packages:
  payload: 3.57.0
  next: 15.5.2
  @payloadcms/db-mongodb: 3.57.0
  @payloadcms/next/utilities: 3.57.0
  @payloadcms/ui/shared: 3.57.0
  react: 19.0.0
  react-dom: 19.0.0

🚀 This is included in version v3.61.1

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.