Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to define initialValue and programmatically open dropdown? #3

Open
jmannDev43 opened this issue Jun 15, 2020 · 1 comment
Open
Labels
enhancement New feature or request hacktoberfest

Comments

@jmannDev43
Copy link

Holy moly, this library is freaking awesome! Kudos man, this is seriously cool, with a ton of applications.

Just wondering if it would be possible to be able to pass in an initialValue and programmatically open/re-open the dropdown list?

@anshumanv
Copy link
Owner

anshumanv commented Jun 15, 2020

Hey @jmannDev43, thank you! ✨

Yes, supporting initialValue as a prop is a very common use case and something I've been looking to achieve for a while, but couldn't find time. Feel free to PR if you'd like :)

And yes we could also have an option to programmatically toggle the dropdowns, simple approach could be exporting the list of dropdowns setter functions for the user to play around with.

@anshumanv anshumanv added the enhancement New feature or request label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants