vtaits / react-select-async-paginate

Wrapper above react-select that supports pagination on menu scroll
MIT License
308 stars 75 forks source link

Creatable async paginate multi select bug on select #171

Closed aec-athento closed 3 months ago

aec-athento commented 4 months ago

Are you submitting a bug report or a feature request or a question?

Bug report

What is the current behavior?

I'm using a creatable async paginate multi select. When I select an option, the menu closes, even if I'm using the "closeMenuOnSelect={false}" option.

What is the expected behavior?

The menu should keep opened on select.

Sandbox Link

https://codesandbox.io/p/sandbox/simple-example-forked-v6tzs2?file=%2Fsrc%2FApp.tsx%3A11%2C63

vtaits commented 3 months ago

Try to move creating of Creatable component outside of render function

aec-athento commented 3 months ago

It solved the issue, thank you so much!