JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.56k stars 4.12k forks source link

onMenuScrollToBottom and onMenuScrollToTop does not works in mobile view for Select in React #5892

Open chitkarian-19 opened 5 months ago

chitkarian-19 commented 5 months ago

i have a list of items which are X in number, I have to show all the items in the dropdown, but at once only 25. Once the scroll shows the first 25, or you can saymenu scrolls to bottom, the next 25 should come.

I am achieving this functionality by onMenuScrollToBottom event, it is working smoothly in desktop but when it comes to mobile view only first 25 are visible, rest are not being shown. I checked the event onMenuScrollToBottom event does not gets triggered in mobile view, howoever it gets triggered in desktop view.

Kindly provide suggestions, similar case is happening for onMenuScrollToTop I am attaching small snippet for the same ` <Select options={OPTIONS_DATA} onMenuScrollBottom={loadNextPage}

/> `