Hi I am getting Cannot read property ‘value’ of null error with first dynamic add of a new tab using addOption. Problem occurs here (webix.js - setValue) if the oldvalue and newvalue are the same then $getValue() is fired and then getInputNode which returns null, is this a bug or am I doing something wrong?
Note: Same error if you click menu item to add a tab then click the same menu item again. Occurs in this dynamic sample
https://snippet.webix.com/19d35274
$getValue: function () {
return this._pattern(this.getInputNode().value, false);
},
getInputNode: function () {
return null;
},
setValue: function (value) {
value = this.$prepareValue(value);
var oldvalue = this._settings.value;
if (this.$compareValue(oldvalue, value)) {
if (this._rendered_input && value != this.$getValue())
this.$setValue(value);
return false;
}
this._settings.value = value;
if (this._rendered_input) this.$setValue(value);
this.callEvent("onChange", [value, oldvalue]);
},