onesine / react-tailwindcss-select

Tailwind Select Component for React.js
https://demo-react-tailwindcss-select.vercel.app/
MIT License
183 stars 38 forks source link

:sparkles: Add props to control menu close on select #56

Open foysalit opened 9 months ago

foysalit commented 9 months ago

I noticed that originally, the dropdown was set up to close after every selection which was removed because of this request https://github.com/onesine/react-tailwindcss-select/issues/2 however, just like you @onesine , I find myself with a use-case where I want the dropdown to close after every selection even in isMultiple mode.

So, I figured, the best of both world would be to make this a configuration through props.

Here's a demo video showing it working from the demo page.

https://github.com/onesine/react-tailwindcss-select/assets/1919066/cd4809cf-ed09-4b59-8709-91ae1f7213da