Skip to content

Unpublish modal unreachable in document drawers #10108

Closed
@akhrarovsaid

Description

Describe the Bug

Unpublish modals are not reachable when an editor has the document view opened inside of a drawer. This commonly happens when the document is being edited after being opened in something like a RelationshipTable or while editing a document while already inside of a edit-many flow with existing drawers open.

Link to the code that reproduces this issue

https://github.com/akhrarovsaid/payload/tree/repro/unpublish-unreachable-drawers

Reproduction Steps

  • Grab repro
  • pnpm dev _community
  • Navigate to posts collection
  • Click edit via drawer link
  • Observe drawer opening
  • Try to unpublish
  • Observe unreachable modal

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

area: ui

Environment Info

Payload: 3.10.0
Next: 15.1.0
Node: 20+

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions