Skip to content

Commit

Permalink
Add context via comments to potentially obsecure drilled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed May 19, 2023
1 parent 9f6b8e0 commit 836504b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/navigation/edit/leaf-more-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ function AddSubmenuItem( {
);
}

// This call sets the local List View state for the "last inserted block".
// This is required for the Nav Block to determine whether or not to display
// the Link UI for this new block.
setInsertedBlock( newLink );

if ( ! expandedState[ block.clientId ] ) {
Expand Down

0 comments on commit 836504b

Please sign in to comment.