Преглед на файлове

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

Amumu преди 6 години
родител
ревизия
74fb8ac225
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 &&