Skip to content

Commit

Permalink
fix: set flyout visbility on calling setExpanded (#7199)
Browse files Browse the repository at this point in the history
* fix: set flyout visbility on calling setExpanded

* move setVisible to only set false when category is no longer expanded
  • Loading branch information
itsjayway authored Jul 5, 2023
1 parent fa58cba commit 57fdb71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/toolbox/collapsible_category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class CollapsibleToolboxCategory
}

/**
* Opens or closes the current category.
* Opens or closes the current category and the associated flyout.
*
* @param isExpanded True to expand the category, false to close.
*/
Expand All @@ -197,6 +197,7 @@ export class CollapsibleToolboxCategory
this.subcategoriesDiv_!.style.display = 'block';
this.openIcon_(this.iconDom_);
} else {
this.parentToolbox_.getFlyout()?.setVisible(false);
this.subcategoriesDiv_!.style.display = 'none';
this.closeIcon_(this.iconDom_);
}
Expand Down

0 comments on commit 57fdb71

Please sign in to comment.