diff --git a/core/field_dropdown.js b/core/field_dropdown.js index 5dad752d85c..5bebbfdc495 100644 --- a/core/field_dropdown.js +++ b/core/field_dropdown.js @@ -297,6 +297,9 @@ Blockly.FieldDropdown.prototype.showEditor_ = function(opt_e) { } else { this.menu_.openingCoords = null; } + + // Remove any pre-existing elements in the dropdown. + Blockly.DropDownDiv.clearContent(); // Element gets created in render. this.menu_.render(Blockly.DropDownDiv.getContentDiv()); var menuElement = /** @type {!Element} */ (this.menu_.getElement());