calendar selection of date does not close the calendar overlay when showTime is true

UI Components for React
Post Reply
ssaha
Posts: 7
Joined: 04 Nov 2022, 10:06

06 Dec 2022, 06:12

Set the calendar with showTime as True then on selection of date or when today is clicked, overlay should close. How to do it ?

Able to replicate the issue here https://primefaces.org/primereact/calendar/
with the Time / 24h field.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

06 Dec 2022, 15:32

This is intentional. Because if you pick a date and it closed you would have to open the calendar again to start using the TimePickers. and since you may click on Hours, then Minutes, then Seconds the overlay panel has no idea "when you are done" when you are using Time.

So the behavior is correct.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

ssaha
Posts: 7
Joined: 04 Nov 2022, 10:06

07 Dec 2022, 10:56

Is there anyway I can add a close button at top right corner in the calender overlay ?
And is there anyway to change the overlay position ?

habubey
Posts: 89
Joined: 24 Aug 2022, 13:17

08 Dec 2022, 16:01

Hey there!

Did you use hideOnDateTimeSelect property? It can hide the overlay after date selection.
Bugra Beyduz
PrimeReact Core Developer
Github profile: https://github.com/habubey

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests