diff --git a/editor/js/ui/common/typedInput.js b/editor/js/ui/common/typedInput.js index e49dbb250..0f9e2a0d9 100644 --- a/editor/js/ui/common/typedInput.js +++ b/editor/js/ui/common/typedInput.js @@ -496,7 +496,11 @@ } else { that.activeOptions[o.value] = o; } - }) + }); + + if (!that.activeOptions.hasOwnProperty(that.optionValue)) { + that.optionValue = null; + } this.optionMenu = this._createMenu(opt.options,function(v){ that._updateOptionSelectLabel(that.activeOptions[v]); if (!opt.hasValue) {