From 3a14fcc6d379e28f5402801b9137921346da2ff8 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Fri, 24 Apr 2026 09:26:53 -0700 Subject: [PATCH] fix: Fix bug that could cause focus to be lost in Chrome when dismissing a dropdown (#9763) --- packages/blockly/core/dropdowndiv.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/dropdowndiv.ts b/packages/blockly/core/dropdowndiv.ts index ceacf9faf..95b6c66e1 100644 --- a/packages/blockly/core/dropdowndiv.ts +++ b/packages/blockly/core/dropdowndiv.ts @@ -712,7 +712,6 @@ export function hideWithoutAnimation() { onHide(); onHide = null; } - clearContent(); owner = null; (common.getMainWorkspace() as WorkspaceSvg).markFocused(); @@ -721,6 +720,8 @@ export function hideWithoutAnimation() { returnEphemeralFocus(); returnEphemeralFocus = null; } + + clearContent(); } /**