Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Block drawers opened when document mounts #10439

Closed
LimChorngUan opened this issue Jan 8, 2025 · 3 comments · Fixed by #10480
Closed

Inline Block drawers opened when document mounts #10439

LimChorngUan opened this issue Jan 8, 2025 · 3 comments · Fixed by #10480
Assignees

Comments

@LimChorngUan
Copy link
Contributor

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

https://github.com/LimChorngUan/payload-bug/commit/7a31b0797004771c48a614fffe79c58944552aa4

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
@GermanJablo
Copy link
Contributor

Thanks a lot for reporting, this was fixed at #10480 and will be in the next release!

Copy link
Contributor

🚀 This is included in version v3.16.0

Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants