react-select-async-paginate icon indicating copy to clipboard operation
react-select-async-paginate copied to clipboard

Customised MenuList continuously loads.

Open dwjohnston opened this issue 5 years ago • 1 comments

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.

dwjohnston avatar May 27 '20 02:05 dwjohnston

Thank you. I will update documentation a little later.

vtaits avatar May 29 '20 11:05 vtaits