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
Hello, I have found that when handling a big workload (525+ items in the select, when we have optgroups and accounting for them, and 599+ without optgroups)the size of the select does not refresh properly.
This happens only when the selector has been opened prior to filtering or disabling the items we dont want to see.
This has been tested both in Firefox and Chrome latest versions.
Open all selectors before 10 seconds pass (There is a setTimeout with a dummy function that disables every optgroup and options with the disabled class apart from 2 that have the class notDisabled)
Watch as the one in the left has an appropiate size and the other 2 allow scrolling through an empty list. This is because the margin-bottom stays the same as if there has been no change in the list of items.
I only glimpsed the source code of the library, so this is a wild wild guess that almost surely is wrong, but maybe getComputedStyle or jquery.css are called before the task of rendering the items is finished? Maybe a callback is needed with a big workload?
P.D: My workaround about this consisted of destroying and recreating the selectpicker, as the problem lies when refreshing, even though I don't think that would be ideal.
Thank you for this awesome library! Keep up the good work.
The text was updated successfully, but these errors were encountered:
caseyjhol
changed the title
Selector does not resize properly with HideDisabled:true with a large number of items
menu size doesn't update when virtualScroll is disabled while the menu is open
Apr 10, 2019
What's happening: the menu has a large number of options, auto-enabling virtualScroll. Most of the options are then hidden after a timeout, disabling virtualScroll, but the "spacer" margin on the menu isn't reset.
Hello, I have found that when handling a big workload (525+ items in the select, when we have optgroups and accounting for them, and 599+ without optgroups)the size of the select does not refresh properly.
This happens only when the selector has been opened prior to filtering or disabling the items we dont want to see.
This has been tested both in Firefox and Chrome latest versions.
I only glimpsed the source code of the library, so this is a wild wild guess that almost surely is wrong, but maybe getComputedStyle or jquery.css are called before the task of rendering the items is finished? Maybe a callback is needed with a big workload?
P.D: My workaround about this consisted of destroying and recreating the selectpicker, as the problem lies when refreshing, even though I don't think that would be ideal.
Thank you for this awesome library! Keep up the good work.
The text was updated successfully, but these errors were encountered: