Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InnerBlocks renderAppender doesn't do anything

I'm trying to add a custom appender to my InnerBlocks component. I followed the example here: https://github.com/WordPress/gutenberg/tree/master/packages/block-editor/src/components/inner-blocks

However, nothing changes when I use this code. Am I missing something or has this functionality just not been released yet?

Here's my code, but it's exactly the same as the example.

<InnerBlocks
  renderAppender={ () => (
    <button className="bespoke-appender" type="button">Some Special Appender</button>
  ) }
/>
like image 587
Rice_Crisp Avatar asked Nov 06 '22 16:11

Rice_Crisp


1 Answers

As noted in comment, the code example works as expected in newer versions of Gutenberg as of June 2019.

like image 192
Will Avatar answered Nov 28 '22 09:11

Will