diff --git a/packages/block-library/src/group/placeholder.js b/packages/block-library/src/group/placeholder.js index ed3e53c3eb2b9..c7c4c6956e7d6 100644 --- a/packages/block-library/src/group/placeholder.js +++ b/packages/block-library/src/group/placeholder.js @@ -139,6 +139,13 @@ function GroupPlaceHolder( { name, onSelect } ) { const blockProps = useBlockProps( { className: 'wp-block-group__placeholder', } ); + + useEffect( () => { + if ( variations && variations.length === 1 ) { + onSelect( variations[ 0 ] ); + } + }, [ onSelect, variations ] ); + return (