Skip to content

Commit

Permalink
Use selectedOnMount prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Apr 8, 2024
1 parent 4c6274f commit eaef7d3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ function BlockPatternsTab( {
<div className="block-editor-inserter__block-patterns-tabs-container">
<Tabs
selectOnMove={ false }
selectedTabId={
selectedCategory ? selectedCategory.name : null
}
selectedOnMount={ false }
orientation={ 'vertical' }
onSelect={ ( categoryId ) => {
// Pass the full category object
Expand Down

0 comments on commit eaef7d3

Please sign in to comment.