showEditor_(_e?: Event | undefined): void {
this.div_ = Blockly.DropDownDiv.getContentDiv();
this.react_root = ReactDOM.createRoot(this.div_);
this.react_root.render(this.render());
var border = this.getSourceBlock()?.getColour();
let sourceBlock = this.getSourceBlock()?.getColour();
if (sourceBlock && border) {
Blockly.DropDownDiv.setColour(sourceBlock, border);
}
Blockly.DropDownDiv.showPositionedByField(
this,
this.dropdownDispose_.bind(this)
);
// Workaround: Sending a resize event renders the dropdown correctly
setTimeout(() => {
window.dispatchEvent(new Event("resize"));
}, 10);
}