You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for similar issues before opening a new one.
Description
A standalone flyout configured with setAutoClose(true) remains visible after a block is dragged from the flyout into its target workspace.
Expected behavior: The standalone flyout closes after the block is dragged into the workspace because auto-close is enabled.
Actual behavior: The block is created successfully, but the standalone flyout remains visible.
Category-toolbox flyouts close correctly. The problem occurs when the flyout is standalone and therefore has no category toolbox to handle closing when focus leaves the flyout.
This is a regression of previously implemented behavior:
fix: Make non-autoclosing flyouts stay open. #9245 removed the direct flyout auto-hide call in Blockly 12.3.0 because category-toolbox flyouts were closed through their owning toolbox. Standalone flyouts have no owning toolbox, but continued closing through the block-creation path.
This regression was found while testing MIT App Inventor's Blockly 13 upgrade in mit-cml/appinventor-sources#4069. That upgrade currently includes the proposed Blockly fix from #10506, which restores the expected behavior in App Inventor.
Reproduction steps
Open Blockly playground.
In the toolbox dropdown, select Simple. This creates a standalone flyout.
Check for duplicates
Description
A standalone flyout configured with
setAutoClose(true)remains visible after a block is dragged from the flyout into its target workspace.Expected behavior: The standalone flyout closes after the block is dragged into the workspace because auto-close is enabled.
Actual behavior: The block is created successfully, but the standalone flyout remains visible.
Category-toolbox flyouts close correctly. The problem occurs when the flyout is standalone and therefore has no category toolbox to handle closing when focus leaves the flyout.
This is a regression of previously implemented behavior:
autoClosein flyouts/toolboxes toggleable #7506 established that a Simple flyout withautoClose=trueshould close when a block is dragged out or the workspace is clicked. This behavior was implemented by fix: make autoclose toggleable for flyouts #7634.Flyout.createBlock()and itshideChaff()call in Blockly 13.0.0, exposing the missing focus-loss handling for standalone flyouts.This regression was found while testing MIT App Inventor's Blockly 13 upgrade in mit-cml/appinventor-sources#4069. That upgrade currently includes the proposed Blockly fix from #10506, which restores the expected behavior in App Inventor.
Reproduction steps
Open Blockly playground.
In the toolbox dropdown, select Simple. This creates a standalone flyout.
Open the browser console and enable auto-close:
Drag any block from the flyout into the workspace.
Observe that the block is created but the flyout remains visible.
Screenshots
The regression was reported by an App Inventor community tester and demonstrated in this recording.