Skip to content

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

@JarrodMFlesch

Description

@JarrodMFlesch

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions