From 57fdb71ad949b8ce268258b7f4fdfe7a07e835e0 Mon Sep 17 00:00:00 2001 From: jayway <70596906+jibranabsarulislam@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:24:03 -0400 Subject: [PATCH] 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 --- core/toolbox/collapsible_category.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/toolbox/collapsible_category.ts b/core/toolbox/collapsible_category.ts index cb5270995..fe4b7cf55 100644 --- a/core/toolbox/collapsible_category.ts +++ b/core/toolbox/collapsible_category.ts @@ -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_); }