Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Merge d59be06 into c5235be
Browse files Browse the repository at this point in the history
  • Loading branch information
qpitlove committed Nov 28, 2014
2 parents c5235be + d59be06 commit 8262847
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tags-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ tagsInput.directive('tagsInput', function($timeout, $document, tagsInputConfig)
return tag[options.displayProperty];
};

scope.newTagKeyup = function() {
scope.newTag.text = input.val();
events.trigger('input-change', scope.newTag.text);
};

scope.newTagChange = function() {
events.trigger('input-change', scope.newTag.text);
};
Expand Down
1 change: 1 addition & 0 deletions templates/tags-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</ul>
<input class="input"
ng-model="newTag.text"
ng-keyup="newTagKeyup()"
ng-change="newTagChange()"
ng-trim="false"
ng-class="{'invalid-tag': newTag.invalid}"
Expand Down

0 comments on commit 8262847

Please sign in to comment.