You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<select2 class="form-control" ng-model="ngModel.selectedItem" ng-options="item.id as item.text for item in items" options="{matcher: fooMatcher}" required></select2>
has no effect when using angular-select2.
The custom query implementation has the matcher logic hardcoded instead of utilizing opts.matcher.
Using the idea from @atamanroman I have modified the angular-select2 file, so that it can used for any element with or without a matcher function like:
// Check if options have any matcher function appliedif(opts.hasOwnProperty("matcher")){if(opts.matcher(query.term,label)){options.push({id:value,text:label,obj:values[key]});}}elseif(label.toLowerCase().indexOf(query.term.toLowerCase())>-1){options.push({id:value,text:label,obj:values[key]});}
Configuring a matcher like this
has no effect when using angular-select2.
The custom query implementation has the matcher logic hardcoded instead of utilizing
opts.matcher
.See c7b700f:
The text was updated successfully, but these errors were encountered: