Inline block drawer doesn’t open when inserting a inline block
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:
- Clone the link to reproduction ripo and launch Payload
- Create a new Post instance
- 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
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.
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.
Reproduction code: https://github.com/LimChorngUan/payload-bug-reproduction/blob/rte-required-field/test/_community/collections/Posts/index.ts
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
🚀 This is included in version v3.15.0