Commit 0cadcb863c27b56d3dba57a3922d9c123aeca492

Authored by Aresn
Committed by GitHub
2 parents 57042e92 0dc5c972

Merge pull request #4750 from RookieZoe/2.0-fix#4558

fix#4558, AutoComplete
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/components/auto-complete/auto-complete.vue
@@ -151,6 +151,7 @@ @@ -151,6 +151,7 @@
151 this.$emit('on-search', query); 151 this.$emit('on-search', query);
152 }, 152 },
153 handleChange (val) { 153 handleChange (val) {
  154 + if (val === undefined || val === null) return;
154 this.currentValue = val; 155 this.currentValue = val;
155 this.$refs.input.blur(); 156 this.$refs.input.blur();
156 this.$emit('on-select', val); 157 this.$emit('on-select', val);