payload icon indicating copy to clipboard operation
payload copied to clipboard

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

Open ChannKan opened this issue 1 year ago • 2 comments

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 avatar Dec 08 '24 09:12 ChannKan

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.

cbratschi avatar Dec 09 '24 00:12 cbratschi

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

LimChorngUan avatar Dec 09 '24 13:12 LimChorngUan

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

github-actions[bot] avatar Jan 05 '25 04:01 github-actions[bot]

🚀 This is included in version v3.15.0

github-actions[bot] avatar Jan 07 '25 17:01 github-actions[bot]