react-select-async-paginate
react-select-async-paginate copied to clipboard
Customised MenuList continuously loads.
Are you submitting a bug report or a feature request?
What is the current behavior?
When customising MenuList max-height and overflow-y are lost, which causes the pagination/lazy loading to continuously load.
This is even when using wrapMenuList.
What is the expected behavior?
Max height and overflow-y should be set, or documentation should be updated highlighting this.
Sandbox Link
https://codesandbox.io/s/simple-example-xwdbr?file=/src/App.jsx
What's your environment?
See sandbox.
The customised MenuList I'm using comes from Material-UI.
Other information
This is easily solved by adding:
style = {{maxHeight: '300px', overflowY: 'auto'}}
which the wrapMenuList function can probably provide.
If you like I can create a PR for this.
Thank you. I will update documentation a little later.