Skip to content

Commit

Permalink
Select: fix the bug when the value is Boolean (ElemeFE#21052)
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 authored and cn3lfs committed Feb 24, 2022
1 parent ee3b469 commit 135eb55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
}
if (option) return option;
const label = (!isObject && !isNull && !isUndefined)
? value : '';
? String(value) : '';
let newOption = {
value: value,
currentLabel: label
Expand Down

0 comments on commit 135eb55

Please sign in to comment.