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(); } /**