make space add tag

This commit is contained in:
Girish Ramakrishnan
2016-09-28 13:06:02 -07:00
parent 61292c4df9
commit 1a17627f83

View File

@@ -407,7 +407,7 @@ app.directive('tagInput', function () {
});
element.bind('keyup', function (e) {
var key = e.which;
if (key === 9 || key === 13 || key === 188) {
if (key === 9 || key === 13 || key === 32 || key === 188) {
e.preventDefault();
return $scope.$apply('addTag()');
}