Skip to content

Drawers close on autosave operation (new 3.44) #12975

@cgilly2fast

Description

@cgilly2fast

Describe the Bug

When opening a document through a drawer (such as from a join field relationship) where the target collection has autosave enabled, any save operation immediately closes the drawer. This occurs even when the document status is draft and happens on every draft update triggered by the autosave functionality.

The issue affects:

  • Join field drawers opening autosave-enabled collections
  • Custom drawers opening autosave-enabled collections
  • Any drawer context where autosave collections are edited

The drawer closes unexpectedly on each autosave interval, making it impossible to edit documents in drawer contexts when autosave is enabled.

Link to the code that reproduces this issue

https://github.com/cgilly2fast/payload-issue-auto-drawer

Reproduction Steps

  1. Seed the database with the website template data.
  2. Go to post and your user as an author
  3. Go to the user profile page
  4. Open the post in the join field added to the user collection
  5. Any autosave will close the drawer

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

Not sure, area: core

Environment Info

Payload 3.44

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions