Преглед изворни кода

Select: return when query is null

Leopoldthecoder пре 7 година
родитељ
комит
7b8250b4e2
1 измењених фајлова са 1 додато и 0 уклоњено
  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');
         });