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
When using infinite scroll with remote data on a multiple:true, closeOnSelect:false select2, if I click on all of the results in the first page, the "Loading more results..." item comes into view but doesn't actually trigger an ajax load of second page.
Example:
From the select2 examples page, run in the javascript console:
$("#e7").select2("destroy");$("#e7").select2({closeOnSelect:false,multiple:true,placeholder: "Search for a movie",minimumInputLength: 3,ajax: {url: "http://api.rottentomatoes.com/api/public/v1.0/movies.json",dataType: 'jsonp',quietMillis: 100,data: function(term,page){// page is the one-based page number tracked by Select2return{q: term,//search termpage_limit: 10,// page sizepage: page,// page numberapikey: "ju6z9mjyajq2djue3gbvv26t"// please do not use so this example keeps working};},results: function(data,page){varmore=(page*10)<data.total;// whether or not there are more results available// notice we return the value of more so Select2 knows if more results can be loadedreturn{results: data.movies,more: more};}},formatResult: movieFormatResult,// omitted for brevity, see the source of this pageformatSelection: movieFormatSelection,// omitted for brevity, see the source of this pagedropdownCssClass: "bigdrop",// apply css that makes the dropdown tallerescapeMarkup: function(m){returnm;}// we do not want to escape markup since we are displaying html in results});
Then search for "Terminator". Without scrolling, click on each result. As the results move from the result list to a selected choice, you'll eventually get down to one result and "Loading more results...", but the second page of results doesn't get loaded.
If you had instead scrolled to show "Loading more results...", the second page loads as expected, the only problem is when "Loading more results..." appears because you have selected items off the top of the list
The text was updated successfully, but these errors were encountered:
When using infinite scroll with remote data on a multiple:true, closeOnSelect:false select2, if I click on all of the results in the first page, the "Loading more results..." item comes into view but doesn't actually trigger an ajax load of second page.
Example:
From the select2 examples page, run in the javascript console:
Then search for "Terminator". Without scrolling, click on each result. As the results move from the result list to a selected choice, you'll eventually get down to one result and "Loading more results...", but the second page of results doesn't get loaded.
If you had instead scrolled to show "Loading more results...", the second page loads as expected, the only problem is when "Loading more results..." appears because you have selected items off the top of the list
The text was updated successfully, but these errors were encountered: