diff options
Diffstat (limited to 'awesomplete.js')
-rw-r--r-- | awesomplete.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/awesomplete.js b/awesomplete.js index 86707f1..82c18a5 100644 --- a/awesomplete.js +++ b/awesomplete.js @@ -219,7 +219,11 @@ _.prototype = { return i < me.maxItems - 1; }); - this.open(); + if (this.ul.children.length === 0) { + this.close(); + } else { + this.open(); + } } else { this.close(); |