Pārlūkot izejas kodu

Select: return when query is null

Leopoldthecoder 7 gadi atpakaļ
vecāks
revīzija
7b8250b4e2
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      packages/select/src/select.vue

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

@@ -248,6 +248,7 @@
       },
 
       query(val) {
+        if (val === null || val === undefined) return;
         this.$nextTick(() => {
           if (this.visible) this.broadcast('ElSelectDropdown', 'updatePopper');
         });