From 2edec3912bcef60828afe28b2d9d61f0f80d0c4c Mon Sep 17 00:00:00 2001 From: Jordan Humphreys Date: Tue, 24 May 2016 10:47:35 -0700 Subject: [PATCH] Bump version. --- bower.json | 2 +- dist/tribute.js | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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": {