Skip to content

Commit bb4e335

Browse files
authored
Hide ExpandableCalendar header when going out of container (#2633)
* Added Overflow hidden ExpandableCalendar container * Moved overflow to container style
1 parent 82524a0 commit bb4e335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableCalendar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const ExpandableCalendar = forwardRef<ExpandableCalendarRef, ExpandableCalendarP
269269
}, [isOpen, headerHeight]);
270270

271271
const containerStyle = useMemo(() => {
272-
return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && style.current.hidden];
272+
return [allowShadow && style.current.containerShadow, propsStyle, headerHeight === 0 && style.current.hidden, {overflow: 'hidden'} as const];
273273
}, [allowShadow, propsStyle, headerHeight]);
274274

275275
const wrapperStyle = useMemo(() => {

0 commit comments

Comments
 (0)