Skip to content

Commit fe1e82c

Browse files
committed
fix(typeahead): fix the build
1 parent 7c037e2 commit fe1e82c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/directives/typeahead.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ angular.module('$strap.directives')
2121

2222
element.attr('data-provide', 'typeahead');
2323
element.typeahead({
24-
source: value,
24+
source: function(query) { return angular.isFunction(value) ? value.apply(null, arguments) : value; },
2525
minLength: attrs.minLength || 1,
2626
items: attrs.items,
2727
updater: function(value) {

0 commit comments

Comments
 (0)