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 drawer doesn’t open when inserting a inline block #9816

Closed
ChannKan opened this issue Dec 8, 2024 · 4 comments · Fixed by #10318
Closed

Inline block drawer doesn’t open when inserting a inline block #9816

ChannKan opened this issue Dec 8, 2024 · 4 comments · Fixed by #10318
Assignees

Comments

@ChannKan
Copy link

ChannKan commented Dec 8, 2024

Describe the Bug

When inserting a inline-block into a rich-text field it is added immediately without opening the drawer first

Link to the code that reproduces this issue

https://github.com/shefing/payload_Inline_block_with_relationship/tree/Check_inline_block

Reproduction Steps

Steps to reproduce:

  1. Clone the link to reproduction ripo and launch Payload
  2. Create a new Post instance
  3. Add a inline-block to the rich-text field

Expected:
Inline-block drawer is opened

Actual:
Inline-block drawer doesn’t open and a empty inline-block is added in the rich-text field

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

plugin: richtext-lexical

Environment Info

Node: 22.11.0
  payload: 3.5.0
  next: 15.0.4
@ChannKan ChannKan added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 8, 2024
@cbratschi
Copy link

Wanted to report this too. I have inline blocks with required fields. The block gets created without asking the users to set its field values.

In addition, a strange error message is shown on save if required values of blocks are missing. It's difficult to find the source of the error.

@LimChorngUan
Copy link
Contributor

We faced the same issue too, the usage of required kinds of work as in it prevents user from publishing if there are any empty inline block, however the UI doesn't help users to identify which field exactly is giving the error.

Image

Reproduction code: https://github.com/LimChorngUan/payload-bug-reproduction/blob/rte-required-field/test/_community/collections/Posts/index.ts

Copy link
Contributor

github-actions bot commented Jan 5, 2025

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 5, 2025
@github-actions github-actions bot unlocked this conversation Jan 7, 2025
Copy link
Contributor

github-actions bot commented Jan 7, 2025

🚀 This is included in version v3.15.0

@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 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.

5 participants