Calendar with selectionMode="range" set. After user selected date range, calendar doesn't not close
Posted: 02 Dec 2020, 10:29
I use the calendar component ( https://primefaces.org/primereact/showcase/#/calendar ) as follows:
<Calendar value={this.state.selectedDateRange} ... selectionMode="range" ... />
Two questions:
1) In this mode, after selected the second date to complete the date range selection, the calendar doesn't close as it does in other mode.
I have to click else where outside of the calendar to get it to go away.
Is there a way to have it close ?
2) I'm fine with clicking else where to close the calendar after selected the date range.
However, I need to set up and catch that event. Any idea on how to do this?
Thanks
<Calendar value={this.state.selectedDateRange} ... selectionMode="range" ... />
Two questions:
1) In this mode, after selected the second date to complete the date range selection, the calendar doesn't close as it does in other mode.
I have to click else where outside of the calendar to get it to go away.
Is there a way to have it close ?
2) I'm fine with clicking else where to close the calendar after selected the date range.
However, I need to set up and catch that event. Any idea on how to do this?
Thanks