Skip to content

Commit

Permalink
tagbox: deselect tag on a click on the input
Browse files Browse the repository at this point in the history
  • Loading branch information
setaou committed Jan 28, 2016
1 parent eaea935 commit cb31692
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/tagbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ tagbox.directive('tagbox', function() {
});
}, 100);
});

input.on('click', function(event) {
scope.$apply(function() {
scope.selectedtag = -1;
});
});
}
};
});

0 comments on commit cb31692

Please sign in to comment.