creativetimofficial / tailwind-starter-kit

Tailwind Starter Kit a beautiful extension for TailwindCSS, Free and Open Source
https://www.creative-tim.com/learning-lab/tailwind-starter-kit#/presentation
MIT License
5.69k stars 886 forks source link

Dropdown needs to close on click elsewhere #18

Open vedmant opened 3 years ago

vedmant commented 3 years ago

Dropdown needs to close on click elsewhere

einazare commented 3 years ago

Hello there, @vedmant ,

Yes, you are right, but at the moment we do not know how it would be best to do this. If you have any idea, you can open a PR and if everything checks out, we'll approve it.

Best, Manu

Sensiblemnd commented 3 years ago

https://medium.com/@kevinfelisilda/click-outside-element-event-using-react-hooks-2c540814b661

acatzk commented 3 years ago

I suggest you used @headless-ui for better functionality

einazare commented 3 years ago

Hello there, @acatzk ,

The problem with Headless UI is the fact that it only comes with React & VueJS, and there would be differences between React, Angular, VueJS, and Vanilla JS. I think we should keep the same functionalities in all of our versions of this project.

Best, Manu

Priyanka11-dev commented 2 years ago

@einazare, Can i work on this?

marqbeniamin commented 2 years ago

@Priyanka11-dev thank you for your interest. Yes, you can create PR with your idea. I assign you this issue.