Skip to content

Commit 33fceee

Browse files
authored
fix: Fix bug that prevented opening dropdowns on Chrome (#9991)
1 parent 1a73393 commit 33fceee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/blockly/core/dropdowndiv.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,9 @@ export function hideIfOwner<T>(
706706

707707
/** Hide the menu, triggering animation. */
708708
export function hide() {
709+
if (!isVisible()) {
710+
return;
711+
}
709712
getFocusManager().unregisterPopoverFocusLossHandler(handleFocusLoss);
710713
// Start the animation by setting the translation and fading out.
711714
// Reset to (initialX, initialY) - i.e., no translation.

0 commit comments

Comments
 (0)