feat: update current time indicator on page refocus (#27503)

Add updateCurrentTimeOnFocus prop to Calendar component that enables
the current time indicator to update when the page is refocused.
This helps users see the accurate current time after switching tabs.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-02-02 14:40:20 +00:00
1 parent d743c92479
commit 4b7ea0c98f
4 files changed
+48 -22

No files matched your search

@@ -1,6 +1,5 @@
import type { IFromUser, IToUser } from "@calcom/features/availability/lib/getUserAvailability";
import type { TimeRange } from "@calcom/types/schedule";
import type { BorderColor } from "./common";
import type { CalendarEvent } from "./events";
@@ -158,6 +157,11 @@ export type CalendarState = {
* Selected booking UID to highlight the corresponding event
*/
selectedBookingUid?: string | null;
/**
* Update the current time indicator when the page is refocused
* @default false
*/
updateCurrentTimeOnFocus?: boolean;
};
export type CalendarComponentProps = CalendarPublicActions & CalendarState & { isPending?: boolean };