Skip to content

Commit 260ca8d

Browse files
committed
Pass the element to the selection callback function
1 parent 49d5ffa commit 260ca8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular.autocomplete.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
}
9696

9797
function didSelectItem() {
98-
scope.callback(scope.results[scope.selectedIndex]);
98+
scope.callback(scope.results[scope.selectedIndex], el);
9999
hideResults();
100100
}
101101

0 commit comments

Comments
 (0)