@@ -55,9 +49,7 @@ function GroupEdit( {
(
- isAppenderVisible &&
- ) }
+ renderAppender={ ! hasInnerBlocks && renderAppender }
/>
@@ -69,14 +61,12 @@ export default compose( [
withSelect( ( select, { clientId } ) => {
const {
getBlock,
- hasSelectedInnerBlock,
} = select( 'core/block-editor' );
const block = getBlock( clientId );
return {
hasInnerBlocks: !! ( block && block.innerBlocks.length ),
- isInnerBlockSelected: hasSelectedInnerBlock( clientId, true ),
};
} ),
] )( GroupEdit );
diff --git a/packages/e2e-tests/specs/blocks/group.test.js b/packages/e2e-tests/specs/blocks/group.test.js
index dcf10b7418e608..7ce9021d26bd4b 100644
--- a/packages/e2e-tests/specs/blocks/group.test.js
+++ b/packages/e2e-tests/specs/blocks/group.test.js
@@ -31,13 +31,8 @@ describe( 'Group', () => {
it( 'can have other blocks appended to it using the button appender', async () => {
await searchForBlock( 'Group' );
await page.click( '.editor-block-list-item-group' );
-
- await page.waitForSelector( '.block-editor-button-block-appender' );
await page.click( '.block-editor-button-block-appender' );
-
- await page.waitForSelector( '.editor-block-list-item-paragraph' );
await page.click( '.editor-block-list-item-paragraph' );
-
await page.keyboard.type( 'Group Block with a Paragraph' );
expect( await getEditedPostContent() ).toMatchSnapshot();