Page 1 of 1

Calendar with selectionMode="range" set. After user selected date range, calendar doesn't not close

Posted: 02 Dec 2020, 10:29
by ddao
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

Re: Calendar with selectionMode="range" set. After user selected date range, calendar doesn't not close

Posted: 06 Dec 2020, 08:11
by ddao
This is the same as: viewtopic.php?f=57&t=63432&sid=b4996a06 ... 9e690540e0

Has anyone open the feature?