Explorar el Código

Select: Improve Robustness, fix #13049 (#13245)

Amumu hace 6 años
padre
commit
74fb8ac225
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/select/src/select.vue

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

@@ -185,7 +185,7 @@
 
       showClose() {
         let hasValue = this.multiple
-          ? this.value.length > 0
+          ? Array.isArray(this.value) && this.value.length > 0
           : this.value !== undefined && this.value !== null && this.value !== '';
         let criteria = this.clearable &&
           !this.selectDisabled &&