If data-minChars="0" is defined and is set to 0, the following code get breaks
Object.defineProperty(Suggestion.prototype = Object.create(String.prototype), "length", {
get: function() { return this.label.length; }
});
Error: TypeError: Cannot read property 'length' of undefined
there should have a safe check return this.label && this.label.length
If
data-minChars="0"is defined and is set to0, the following code get breaksError:
TypeError: Cannot read property 'length' of undefinedthere should have a safe check
return this.label && this.label.length