Minimum Input Length not working? #1682
Description
Bug description:
I have ~1500 items in my drop down list in bootstrap modal.
When I show all the items in a drop down list, there is a delay of 2 seconds for every action the user does.
When trying to limit the amount of items to show by using 'minimum-input-length', there is no change (i.e - full list is displayed).
I tried debugging 'ctrl.activate' function in select.js and I noticed that in line 393 there is different behavior when comparing to Multiple Selection's Plunker:
Line 393: 'if (ctrl.$animate && ctrl.$animate.on && ctrl.$animate.enabled(container[0]))'
On official Multiple's (exmaple:) 'ctrl.$animate.enabled(container[0])' returns undefined, therefore, continues to line 415 $timeout.
On my app: 'ctrl.$animate.enabled(container[0])' returns true and then shows the drop-down list.
My HTML Markup:
<ui-select multiple ng-model="vm.salesPlayContent.mapped_markets" theme="select2" style="width: 630px;" title="select market">
<ui-select-match placeholder="Select market...">{{ $item.name }}</ui-select-match>
<ui-select-choices repeat="market in vm.salesPlayContent.available_markets | filter: {name: $select.search}" minimum-input-length="4">
<div ng-bind-html="market.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
Versions
Angular: 1.4.5
UI-Select / select.js: 0.17.1
Angular UI-Select: 0.18.0
Bootstrap/Select2/Selectize CSS (if applicable):
Select2: 3.5.4
select2-bootstrap-css: 1.4.6
Selectize: 0.12.1