diff --git a/core/dropdowndiv.js b/core/dropdowndiv.js index e61e83cc2..f00d3ae00 100644 --- a/core/dropdowndiv.js +++ b/core/dropdowndiv.js @@ -570,12 +570,12 @@ Blockly.DropDownDiv.hideWithoutAnimation = function() { div.style.opacity = 0; div.style.display = 'none'; - Blockly.DropDownDiv.clearContent(); - Blockly.DropDownDiv.owner_ = null; if (Blockly.DropDownDiv.onHide_) { Blockly.DropDownDiv.onHide_(); Blockly.DropDownDiv.onHide_ = null; } + Blockly.DropDownDiv.clearContent(); + Blockly.DropDownDiv.owner_ = null; }; /**