-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Minimum Input Length not working? #1682
Comments
Your plunkrs are empty 😞 did you try in v0.18.0? |
Not sure why function 'enabled' returns 'true' on my app and in the examples its undefined. |
Version 0.18.0 does not change anything. Notice the laggish UI behavior and how the UI freezes frequently when trying to select an option from the list. |
Oh, you aren't using the
(Wiki: https://github.com/angular-ui/ui-select/wiki/ui-select-choices) If you want to extend this to cover already retrieved data, I think the problem was caused by the |
Could you be more specific how I should use it please? |
Basic Demo (first ui-select) |
The example shows using GET on refresh. I don't use GET as I already have all the data in 'items'. |
Is the performance issue related to ng-repeat creating too many watchers? |
I think this is the same issue as we have on stackoverflow. |
sure.
|
A possible way forward with the performance is to load +/- 25 items and when the user start searching lookup the value in the complete list of 1500+. Second I think I have seen some comments that track by $index will help (don't know for sure). On the min length maybe have a look at #274 or maybe @user378230 has a idea. |
@bgadiel Did you already had a fix/ workaround for the min-length? |
I solved that using a LimitTo, checking the search length:
|
Great work!
|
@bgadiel issue can be closed as you have a answer? |
Uh oh!
There was an error while loading. Please reload this page.
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:
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
The text was updated successfully, but these errors were encountered: