Explorar o código

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

好多大米 %!s(int64=4) %!d(string=hai) anos
pai
achega
9a4b758b77
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/select.vue

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