-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Pass a ref to the calendar component #384
Labels
enhancement
New feature or request
Comments
This would be a good update. Now there seems to be no easy way to manually close a calendar residing inside a function component |
Will be out with the next release. |
Can't wait for this to be published. Do you have an ETA for the release ? 😊 |
Completely forgot about it, sorry. Released in v3.2.0. |
Thank you, that was super fast! 🤗 |
felixmosh
pushed a commit
to felixmosh/react-calendar
that referenced
this issue
Nov 8, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @wojtekmaj sorry if it's not correct to reopen this close issue, but I think that would be great if I could pass a ref to the calendar component, so I can use for instance
https://usehooks.com/useOnClickOutside/
and handle the click outside the component, I think that this would not require so many changes and would be a solution for those who need to collapse the calendar when clicking outside
Originally posted by @cocodrino in #338 (comment)
The text was updated successfully, but these errors were encountered: