mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
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:
@@ -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_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user