Skip to content

Commit

Permalink
Select inserted pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 10, 2023
1 parent 1e66c5d commit 152d795
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ export default function StartPageOptions() {
postType={ postType }
rootClientId={ rootClientId }
onChoosePattern={ ( pattern, blocks ) => {
replaceInnerBlocks( rootClientId, blocks );
setIsClosed( true );
const selectInsertedBlocks = true;
replaceInnerBlocks(
rootClientId,
blocks,
selectInsertedBlocks
);
} }
onRequestClose={ () => setIsClosed( true ) }
/>
Expand Down

0 comments on commit 152d795

Please sign in to comment.