Skip to content

Commit 8ec5130

Browse files
committed
Fix for #48
1 parent 40244d1 commit 8ec5130

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vue-simple-suggest.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,13 @@ export default {
369369
}
370370
},
371371
async getSuggestions (value = '') {
372-
if (this.listShown && !value) {
372+
if (this.listShown && !value && this.minLength > 0) {
373373
this.hideList()
374374
this.clearSuggestions()
375375
return this.suggestions
376376
}
377377
378-
if ((this.minLength > 0) && value.length < this.minLength) {
378+
if (value.length < this.minLength) {
379379
return this.suggestions
380380
}
381381

0 commit comments

Comments
 (0)