Select: fix the bug when the value is Boolean (#21052)

This commit is contained in:
好多大米 2021-06-08 15:10:07 +08:00 committed by GitHub
parent 5ba0f1c219
commit 9a4b758b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,7 +526,7 @@
}
if (option) return option;
const label = (!isObject && !isNull && !isUndefined)
? value : '';
? String(value) : '';
let newOption = {
value: value,
currentLabel: label