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
Dropping this here as it is not really a bug, more a feature request. Or maybe someone has an idea how to deal with this.
I'm using tom-select in a facet/filtering setup where after adding or deleting each item there is an AJAX refresh. On refresh, the updated select element is on the page and tom-select is re-initialized and instantly re-opened.
Right after the re-open, there is a flickr of content in the dropdown. This is caused by the way the dropdown items are loaded: sequentially. So the dropdown is filled one by one, and because it has a max-height, it is growing when the loading is happening, causing both a flash of content underneath it, as a flickr of items filling up until the max.
What would help is if the dropdown content would first be gathered under the hood, and only appended to the dropdown container when fully built so that the opening is an instant event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Dropping this here as it is not really a bug, more a feature request. Or maybe someone has an idea how to deal with this.
I'm using tom-select in a facet/filtering setup where after adding or deleting each item there is an AJAX refresh. On refresh, the updated select element is on the page and tom-select is re-initialized and instantly re-opened.
Right after the re-open, there is a flickr of content in the dropdown. This is caused by the way the dropdown items are loaded: sequentially. So the dropdown is filled one by one, and because it has a max-height, it is growing when the loading is happening, causing both a flash of content underneath it, as a flickr of items filling up until the max.
What would help is if the dropdown content would first be gathered under the hood, and only appended to the dropdown container when fully built so that the opening is an instant event.
Beta Was this translation helpful? Give feedback.
All reactions