From 9a4b758b77ea713001169d78b90706c3bd701b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=BD=E5=A4=9A=E5=A4=A7=E7=B1=B3?= Date: Tue, 8 Jun 2021 15:10:07 +0800 Subject: [PATCH] Select: fix the bug when the value is Boolean (#21052) --- packages/select/src/select.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/select/src/select.vue b/packages/select/src/select.vue index af8be3584..9bca678ef 100644 --- a/packages/select/src/select.vue +++ b/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