Skip to content

Commit

Permalink
Fix native
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Sep 28, 2021
1 parent 2e442c4 commit 69d544a
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
* WordPress dependencies
*/
import { useSelect } from '@wordpress/data';
import { getBlockType, withBlockContentContext } from '@wordpress/blocks';
import {
getBlockType,
__unstableGetInnerBlocksProps as getInnerBlocksProps,
} from '@wordpress/blocks';
import { useRef } from '@wordpress/element';

/**
Expand Down Expand Up @@ -189,9 +192,9 @@ const InnerBlocks = ( props ) => {
InnerBlocks.DefaultBlockAppender = DefaultBlockAppender;
InnerBlocks.ButtonBlockAppender = ButtonBlockAppender;

InnerBlocks.Content = withBlockContentContext( ( { BlockContent } ) => (
<BlockContent />
) );
useInnerBlocksProps.save = getInnerBlocksProps;

InnerBlocks.Content = () => useInnerBlocksProps.save().children;

/**
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/inner-blocks/README.md
Expand Down

0 comments on commit 69d544a

Please sign in to comment.