From 0f73fa2ce28e2721d94578ad89776a96085739c8 Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Fri, 13 May 2022 17:47:10 +0300 Subject: [PATCH] [List v2]: Focus new list item added from sibling inserter (#41051) --- packages/block-library/src/list/v2/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/list/v2/edit.js b/packages/block-library/src/list/v2/edit.js index fc885cca7eb318..6bffee68443577 100644 --- a/packages/block-library/src/list/v2/edit.js +++ b/packages/block-library/src/list/v2/edit.js @@ -134,6 +134,7 @@ function Edit( { attributes, setAttributes, clientId } ) { const innerBlocksProps = useInnerBlocksProps( blockProps, { allowedBlocks: [ 'core/list-item' ], template: TEMPLATE, + templateInsertUpdatesSelection: true, } ); useMigrateOnLoad( attributes, clientId ); const { ordered, reversed, start } = attributes;