diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js index 6aab0bf53..5f78a2c74 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/typedInput.js @@ -537,6 +537,10 @@ } else { this.selectLabel.text(opt.label); } + if (this.optionMenu) { + this.optionMenu.remove(); + this.optionMenu = null; + } if (opt.options) { if (this.optionExpandButton) { this.optionExpandButton.hide(); @@ -627,10 +631,6 @@ } } } else { - if (this.optionMenu) { - this.optionMenu.remove(); - this.optionMenu = null; - } if (this.optionSelectTrigger) { this.optionSelectTrigger.hide(); }