1
0
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:
Nick O'Leary 2018-06-25 10:38:02 +01:00
parent f5e212ff1e
commit bdf87452b6
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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) {