From 4843658dfbf18742cb4ff8e8d7fcdd88bd52ff94 Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Tue, 8 Jul 2025 12:30:30 +0530 Subject: [PATCH] Allow scroll when user selects a date (#22313) --- packages/features/bookings/Booker/Booker.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/features/bookings/Booker/Booker.tsx b/packages/features/bookings/Booker/Booker.tsx index f1e41c36e0..e0e64e72d1 100644 --- a/packages/features/bookings/Booker/Booker.tsx +++ b/packages/features/bookings/Booker/Booker.tsx @@ -155,8 +155,8 @@ const BookerComponent = ({ const scrolledToTimeslotsOnce = useRef(false); const scrollToTimeSlots = () => { - if (isMobile && !isEmbed && !scrolledToTimeslotsOnce.current) { - // eslint-disable-next-line @calcom/eslint/no-scroll-into-view-embed -- Conditional within !isEmbed condition + if (isMobile && !scrolledToTimeslotsOnce.current) { + // eslint-disable-next-line @calcom/eslint/no-scroll-into-view-embed -- We are allowing it here because scrollToTimeSlots is called on explicit user action where it makes sense to scroll, remember that the goal is to not do auto-scroll on embed load because that ends up scrolling the embedding webpage too timeslotsRef.current?.scrollIntoView({ behavior: "smooth" }); scrolledToTimeslotsOnce.current = true; }