Block Wrapper always creates empty space
-
Hello everybody,
I need some help. I’m using a Wrapper for other blocks via “<InnerBlocks.Content />”. The save function looks like this:
return ( <div class="container mb-5"> <div class="row"> <InnerBlocks.Content /> </div> </div> );
If I add one Block, it works on saving. But as soon as I have two blocks, an error gets thrown:
Block validation: Block validation failed for <code>projectx/projectswrapper</code> Content generated by <code>save</code> function: <div class="container mb-5" class="wp-block-projectx-projectswrapper"><div class="row"></div></div> Content retrieved from post body: <div class="container mb-5" class="wp-block-projectx-projectswrapper"><div class="row"> --- LOT'S OF LINEBREAKS HERE --- </div></div>
So there gets empty space created by the blocks within the InnerBlocks Wrapper. Could anybody give me a hint, why this happens?
Thanks in Advance,
Jonas aka. rastatux
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Block Wrapper always creates empty space’ is closed to new replies.