Skip to content

Commit

Permalink
close on empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkuppe committed Mar 29, 2016
1 parent 969693e commit e73f6d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/bootcomplete.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/bootcomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ directive('bootcomplete', ["$compile", "$templateRequest", "$timeout", "$sce", f

// append element to the DOM
scope.makeDom = function (html) {
//element[0].appendChild(html);
document.body.appendChild(html);
};

Expand Down Expand Up @@ -94,6 +93,9 @@ directive('bootcomplete', ["$compile", "$templateRequest", "$timeout", "$sce", f

});
}
if(!scope.search.length) {
scope.close();
}
};

element[0].onkeydown = function (e) {
Expand Down

0 comments on commit e73f6d1

Please sign in to comment.