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

View File

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