mirror of https://github.com/ElemeFE/element
Select: fix the bug when the value is Boolean (#21052)
parent
5ba0f1c219
commit
9a4b758b77
|
@ -526,7 +526,7 @@
|
||||||
}
|
}
|
||||||
if (option) return option;
|
if (option) return option;
|
||||||
const label = (!isObject && !isNull && !isUndefined)
|
const label = (!isObject && !isNull && !isUndefined)
|
||||||
? value : '';
|
? String(value) : '';
|
||||||
let newOption = {
|
let newOption = {
|
||||||
value: value,
|
value: value,
|
||||||
currentLabel: label
|
currentLabel: label
|
||||||
|
|
Loading…
Reference in New Issue