diff --git a/script/autocomplete.js b/script/autocomplete.js index 377ad0f..498d5f1 100644 --- a/script/autocomplete.js +++ b/script/autocomplete.js @@ -221,6 +221,9 @@ app.directive('autocomplete', function() { } else { if(keycode == key.enter) { scope.select(); + if(scope.onSelect) { + scope.onSelect(scope.searchParam); + } } } scope.setIndex(-1);