|
@@ -146,7 +146,7 @@ function nbInit(a,b){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if (!keyExists){ //default logic: set text or value to data value
|
|
if (!keyExists){ //default logic: set text or value to data value
|
|
- item["value" in item ? "value" : "innerText"] = value;
|
|
|
|
|
|
+ item[("value" in item) && item.tagName !== 'LI' ? "value" : "innerText"] = value;
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
item.innerText = value; // do not try to overwrite value on option nodes
|
|
item.innerText = value; // do not try to overwrite value on option nodes
|