Call onHide before clearing content (#3131)

This commit is contained in:
Sam El-Husseini
2019-10-02 11:41:34 -07:00
committed by GitHub
parent 1a461362b6
commit f22603f32a

View File

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