Skip to content

Commit

Permalink
[List v2]: Focus new list item added from sibling inserter (#41051)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored May 13, 2022
1 parent 27ec8f6 commit 0f73fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/list/v2/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f73fa2

Please sign in to comment.