From cb316926978961fc5aa57fd0427a9a753b87140f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BRY?= Date: Thu, 28 Jan 2016 17:03:40 +0100 Subject: [PATCH] tagbox: deselect tag on a click on the input --- js/tagbox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/tagbox.js b/js/tagbox.js index 65eebae..3e14956 100644 --- a/js/tagbox.js +++ b/js/tagbox.js @@ -129,6 +129,12 @@ tagbox.directive('tagbox', function() { }); }, 100); }); + + input.on('click', function(event) { + scope.$apply(function() { + scope.selectedtag = -1; + }); + }); } }; });