Close Calendar After Date Range Selection

UI Components for React
Post Reply
matt.uhrich
Posts: 1
Joined: 09 Sep 2020, 20:04

19 Sep 2020, 01:53

Hi,

I'm using the Calendar component to select a date range. I would like it to close the calendar after a valid date range is selected like the component does when in single date selection mode. I've tried a number of things to make this happen unsuccessfully.

Does anyone have any suggestions how I could accomplish this?

I am using Prime React version 4.2.2.

Thanks!

mert.sincan
Posts: 4741
Joined: 29 Jun 2013, 12:38

10 Oct 2020, 21:06

Hi,

Could you please create a Github issue with the 'new feature' label? Thanks a lot for your nice feedback!

Best Regards,

ddao
Posts: 6
Joined: 18 Nov 2020, 23:25

03 Dec 2020, 05:26

I'm using primereact version 5.0.1 and still see the issue.

misterwyz
Posts: 1
Joined: 24 May 2021, 17:51

24 May 2021, 17:54

This is what i did to hide the calendar

document.getElementsByClassName('p-datepicker')[0].style.display = "none"

mert.sincan
Posts: 4741
Joined: 29 Jun 2013, 12:38

16 Jun 2021, 12:33

Hi,

Unfortunately, I couldn't replicate this issue. Could you please try the latest PrimeReact version?
https://primefaces.org/primereact/showcase/#/calendar

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests