Gutenberg Block inner content for each child?
-
Hi,
I am building an accordion custom block where I have nested children in a “wrapper” block that also have various nested blocks. The concept is like this<ul>// wrapper <li> // sub-wrap: child of 'wrapper' using innerBlocks ... // various: children of 'sub-wrap' using innerBlocks </li> ... </ul>
My problem is that when I use
InnerBlocks.Content
in my wrapper save function I get the accumulated content of all<li>
s. But I want to haveinner.content
for each one of them. How can I achieve this?
I started by traversing the data.storage and re-transfering every child object back to html and puzzle them together but this is just insane and can’t be the solution.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Gutenberg Block inner content for each child?’ is closed to new replies.