Skip to content

Commit

Permalink
remove clearing the block selection on sidebar tab switch (#18621)
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu authored and talldan committed Dec 3, 2019
1 parent 5064a06 commit a06542d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ const SettingsHeader = ( { openDocumentSettings, openBlockSettings, sidebarName

export default withDispatch( ( dispatch ) => {
const { openGeneralSidebar } = dispatch( 'core/edit-post' );
const { clearSelectedBlock } = dispatch( 'core/block-editor' );
return {
openDocumentSettings() {
openGeneralSidebar( 'edit-post/document' );
clearSelectedBlock();
},
openBlockSettings() {
openGeneralSidebar( 'edit-post/block' );
Expand Down

0 comments on commit a06542d

Please sign in to comment.