fix: prevent BookingDetailsSheet flicker when switching bookings (#27894)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Eunjae LeeandDevin AI authored and GitHub committed 2026-02-13 11:53:22 +01:00
1 parent e2119879ae
commit 896dfd50fd
3 files changed
+165 -14

No files matched your search

@@ -1,11 +1,9 @@
import { cva } from "class-variance-authority";
import dayjs from "@calcom/dayjs";
import type { CalendarEvent } from "@calcom/features/calendars/weeklyview/types/events";
import type { BookingStatus } from "@calcom/prisma/enums";
import classNames from "@calcom/ui/classNames";
import { Tooltip } from "@calcom/ui/components/tooltip";
import type { CalendarEvent } from "@calcom/features/calendars/weeklyview/types/events";
import { cva } from "class-variance-authority";
type EventProps = {
event: CalendarEvent;
@@ -111,6 +109,7 @@ export function Event({
return (
<Tooltip content={tooltipContent} className="max-w-none" side={tooltipSide}>
<Component
data-booking-calendar-event="true"
onClick={() => onEventClick?.(event)} // Note this is not the button event. It is the calendar event.
className={classNames(
eventClasses({