fix: set flyout visbility on calling setExpanded (#7199)

* fix: set flyout visbility on calling setExpanded

* move setVisible to only set false when category is no longer expanded
This commit is contained in:
jayway
2023-07-05 11:24:03 -04:00
committed by GitHub
parent fa58cbaaf7
commit 57fdb71ad9

View File

@@ -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.
*/
@@ -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_);
}