We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a73393 commit 33fceeeCopy full SHA for 33fceee
1 file changed
packages/blockly/core/dropdowndiv.ts
@@ -706,6 +706,9 @@ export function hideIfOwner<T>(
706
707
/** Hide the menu, triggering animation. */
708
export function hide() {
709
+ if (!isVisible()) {
710
+ return;
711
+ }
712
getFocusManager().unregisterPopoverFocusLossHandler(handleFocusLoss);
713
// Start the animation by setting the translation and fading out.
714
// Reset to (initialX, initialY) - i.e., no translation.
0 commit comments