Refresh type options properly when typedInput.types called

This commit is contained in:
Nick O'Leary
2018-06-21 10:49:39 +01:00
parent 461e6562ca
commit f5e212ff1e

View File

@@ -418,6 +418,9 @@
this.menu = this._createMenu(this.typeList, function(v) { that.type(v) }); this.menu = this._createMenu(this.typeList, function(v) { that.type(v) });
if (currentType && !this.typeMap.hasOwnProperty(currentType)) { if (currentType && !this.typeMap.hasOwnProperty(currentType)) {
this.type(this.typeList[0].value); this.type(this.typeList[0].value);
} else {
this.propertyType = null;
this.type(currentType);
} }
setTimeout(function() {that._resize();},0); setTimeout(function() {that._resize();},0);
}, },