React-calendar: Manually go to the activeStartDate

Created on 6 Sep 2018  路  2Comments  路  Source: wojtekmaj/react-calendar

Hi @wojtekmaj , first i want to congratulate you for the awesome datepicker that you've done, nice job! :)

I have a calendar inside a dropdown component of mine that closes when the user clicks outside of the calendar.
The problem is that when i navigate through the months, don't select any day and close the dropdown,
i need that when he opens again, the calendar must open on the activeStartDate that i previously set.

So, there is a way that i manually go to the activeStartDate of the calendar?

Thanks again.

question

All 2 comments

Just found this.refs.calendarRef.setActiveStartDate and it worked. XD

I honestly didn't know you can do that :D Happy hacking!

Was this page helpful?
0 / 5 - 0 ratings