-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Hello everyone,
This lib is really awesome and a really good replacement/alternative to select2. However there is one missing feature that I really need: infinite scroll for async loading.
So I would like help and implement it and propose a PR. Before doing so, I would like to know if this idea is OK for you and if you are open to contributions for this kind of features.
Without getting in a lot of details, the idea is to add a scroll detection on the dropdown element and detect if you are at the end of the list. If it's the case, the loadOptions will be triggered with a new page argument. The results will be append to the result list infinitely.
We could handle the last page (and avoid unnecessary loading) if the server returns an empty response or give the ability to the developper to handle it.
What do you guys think?