Commit 0dc5c972813ad6103b2651b232adb7216ee3815e
1 parent
69a84401
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); |