mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Reset typedInput option when type changes
This commit is contained in:
parent
f5e212ff1e
commit
bdf87452b6
@ -496,7 +496,11 @@
|
|||||||
} else {
|
} else {
|
||||||
that.activeOptions[o.value] = o;
|
that.activeOptions[o.value] = o;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
if (!that.activeOptions.hasOwnProperty(that.optionValue)) {
|
||||||
|
that.optionValue = null;
|
||||||
|
}
|
||||||
this.optionMenu = this._createMenu(opt.options,function(v){
|
this.optionMenu = this._createMenu(opt.options,function(v){
|
||||||
that._updateOptionSelectLabel(that.activeOptions[v]);
|
that._updateOptionSelectLabel(that.activeOptions[v]);
|
||||||
if (!opt.hasValue) {
|
if (!opt.hasValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user