Skip to content

Commit 5bf3f61

Browse files
committed
fix ElemeFE#13049 Improve robustness
1 parent c1083c2 commit 5bf3f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/select/src/select.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@
185185
186186
showClose() {
187187
let hasValue = this.multiple
188-
? this.value.length > 0
189-
: this.value !== undefined && this.value !== null && this.value !== '';
188+
? Array.isArray(this.value) && this.value.length > 0
189+
: this.value != null && this.value !== '';
190190
let criteria = this.clearable &&
191191
!this.selectDisabled &&
192192
this.inputHovering &&

0 commit comments

Comments
 (0)