From 9eabe4c4a8a84d3191e8c109bf44b51374115094 Mon Sep 17 00:00:00 2001 From: Matteo Ferigo Date: Thu, 21 Jul 2016 17:49:36 +0200 Subject: [PATCH] On input change Callback to check when the input has changed (useful for add new tags) --- templates/tags-input.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/tags-input.html b/templates/tags-input.html index 81e260ff..e29c36b3 100644 --- a/templates/tags-input.html +++ b/templates/tags-input.html @@ -12,6 +12,7 @@ autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" + ng-keyup="onKeyup({$query:newTag.text()})" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" @@ -22,4 +23,4 @@ ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize> - \ No newline at end of file +