Skip to content

Inline Block drawers opened when document mounts #10439

Closed
@LimChorngUan

Description

Describe the Bug

When loading a document containing inline blocks, the drawers for those inline blocks are automatically opened.
This behavior is unexpected. Drawers should only open when inserting a new inline block or when explicitly editing an inline block.

Link to the code that reproduces this issue

LimChorngUan/payload-bug@7a31b07

Reproduction Steps

  1. Create at least one media document.
  2. Create a new post and insert an inline block with the media.
  3. Save the post.
  4. Refresh the page or navigate elsewhere and return to the post.
  5. Observe that the drawer for the inline block is opened upon loading the post.

Notes: When multiple inline blocks exist, all their drawers are opened simultaneously upon loading the post.

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

area: ui

Environment Info

Payload: 3.15.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions