Open Csaba27 opened 11 months ago
Line 177
NiceSelect.prototype.renderDropdown = function() {
var classes = [
"nice-select",
attr(this.el, "class") || "",
this.disabled ? "disabled" : "",
this.multiple ? "has-multiple" : ""
];
ex. ['nice-select', 'element-classlist', '', '']
Fixes
var classes = ["nice-select"];
if (attr(this.el, "class")) classes.push(attr(this.el, "class"))
if (this.disabled) classes.push("disabled")
if (this.multiple) classes.push("has-multiple")
Line 241 to 245
because of this, pushing null value to classList
Fixes