Inline Block drawers opened when document mounts #10439
Closed
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
- Create at least one media document.
- Create a new post and insert an inline block with the media.
- Save the post.
- Refresh the page or navigate elsewhere and return to the post.
- 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