'core/list' with 'core/list-items' not loading correctly as innerblocks #61578
Labels
[Block] List
Affects the List Block
[Feature] Nested / Inner Blocks
Anything related to the experience of nested/inner blocks inside a larger container, like Group or P
Needs Testing
Needs further testing to be confirmed.
[Type] Bug
An existing feature does not function as intended
Description
While creating Custom Blocks for our client, we came across this unexpected behaviour.
A Block with a list as innerblocks is only loading the content of the list-items which have a entry in the list_template.
To Clarify, if we create this list template:
and the editor adds more list-items, only the content of the first 2 is loaded after editor-reload, even though everything is saved to the database correctly. That leads to overwriting the desired list-items after the editor is reloaded without the correct content.
For Example:
Save 4 list-items -> reload page, only 2 are loaded correctly -> safe again and the other 2 get deleted, overwritten
This behaviour only occurred with list/list-items. We used the same code with different behaviour on "core/buttons" "core/button" and other core blocks.
Step-by-step reproduction instructions
Create a new Block with this edit JS
Build Plugin,
Screenshots, screen recording, code snippet
No response
Environment info
Tested in different environments (Docker / Orbstack, Debian Server) with Wordpress 6.5.3 and different Browsers (Arc, Chrome, Firefox, Safari). Tested with a clean installation without any other plugins active
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: