When calling setExpanded(false)
on a collapsible toolbox category programmatically, the flyout should be closed
#7174
Labels
issue: bug
Describes why the code or behaviour is wrong
size: small
Bugs that can be picked up and completed in 1-3 days
Check for duplicates
Description
Originally reported by: https://groups.google.com/g/blockly/c/V5thY4HxQPI/m/bnlVYlzBAgAJ?utm_medium=email&utm_source=footer
If you call
setExpanded(false)
on a collapsible toolbox category, and one of the sub-categories is currently selected (i.e. its blocks are shown in the flyout). That flyout should be closed.Reproduction steps
Blockly.getMainWorkspace().getToolbox().getToolboxItems()[2].setExpanded(false);
Stack trace
Screenshots
Step 2:
Step 4:
Browsers
No response
The text was updated successfully, but these errors were encountered: