I have been googling and reading the documentation on the site but I cant seem to find a way to tell select2 there are no more results to load.
When scrolling it is load 20 records at a time and when it gets to the end it still says ‘loading more’ and continues to ask for more pages when there is no more data to load.