React-calendar: Pass a ref to the calendar component

Created on 1 Jun 2020  路  5Comments  路  Source: wojtekmaj/react-calendar

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 https://github.com/wojtekmaj/react-calendar/issues/338#issuecomment-635616386_

enhancement

Most helpful comment

Completely forgot about it, sorry. Released in v3.2.0.

All 5 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 ? :blush:

Completely forgot about it, sorry. Released in v3.2.0.

Thank you, that was super fast! :hugs:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rmccue picture rmccue  路  4Comments

Muttakee31 picture Muttakee31  路  4Comments

dumkanki picture dumkanki  路  3Comments

boonware picture boonware  路  4Comments

wojtekmaj picture wojtekmaj  路  3Comments