|
@@ -510,6 +510,7 @@
|
|
let option;
|
|
let option;
|
|
const isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
|
|
const isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
|
|
const isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
|
|
const isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
|
|
|
|
+ const isUndefined = Object.prototype.toString.call(value).toLowerCase() === '[object undefined]';
|
|
|
|
|
|
for (let i = this.cachedOptions.length - 1; i >= 0; i--) {
|
|
for (let i = this.cachedOptions.length - 1; i >= 0; i--) {
|
|
const cachedOption = this.cachedOptions[i];
|
|
const cachedOption = this.cachedOptions[i];
|
|
@@ -522,7 +523,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (option) return option;
|
|
if (option) return option;
|
|
- const label = (!isObject && !isNull)
|
|
|
|
|
|
+ const label = (!isObject && !isNull && !isUndefined)
|
|
? value : '';
|
|
? value : '';
|
|
let newOption = {
|
|
let newOption = {
|
|
value: value,
|
|
value: value,
|