Skip to content

Commit

Permalink
Fix Block Settings sidebar unexpectedly collapsing (#34543)
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus committed Sep 6, 2021
1 parent 539cea0 commit 44d1d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/customize-widgets/src/controls/inspector-section.js
Expand Up @@ -16,6 +16,9 @@ export default function getInspectorSection() {
'customize-widgets-layout__inspector'
);
}
isContextuallyActive() {
return this.active();
}
onChangeExpanded( expanded, args ) {
super.onChangeExpanded( expanded, args );

Expand Down
3 changes: 3 additions & 0 deletions packages/customize-widgets/src/controls/sidebar-section.js
Expand Up @@ -36,6 +36,9 @@ export default function getSidebarSection() {
'customize-widgets__sidebar-section'
);
}
isContextuallyActive() {
return this.active();
}
hasSubSectionOpened() {
return this.inspector.expanded();
}
Expand Down

0 comments on commit 44d1d32

Please sign in to comment.