diff --git a/bower.json b/bower.json index dc4619da..32de78c5 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "tribute", "description": "Native ES6 @mentions", - "version": "1.0.4", + "version": "1.0.5", "main": [ "dist/tribute.js", "dist/tribute.css" diff --git a/dist/tribute.js b/dist/tribute.js index a8dc7cde..40e88093 100644 --- a/dist/tribute.js +++ b/dist/tribute.js @@ -205,6 +205,11 @@ if (!Array.prototype.find) { this.current.filteredItems = items; + if (!items.length) { + this.hideMenu(); + return; + } + var ul = this.menu.querySelector('ul'); ul.innerHTML = ''; diff --git a/package.json b/package.json index ab04e564..84f95e71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tributejs", - "version": "1.0.4", + "version": "1.0.5", "description": "Native ES6 @mentions", "dependencies": {}, "devDependencies": {