We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68287bb commit 93d6423Copy full SHA for 93d6423
src/expandableCalendar/index.tsx
@@ -336,8 +336,8 @@ const ExpandableCalendar = (props: ExpandableCalendarProps) => {
336
};
337
338
const handlePanResponderMove = (_: GestureResponderEvent, gestureState: PanResponderGestureState) => {
339
- // limit min height to closed height
340
- _wrapperStyles.current.style.height = Math.max(closedHeight, _height.current + gestureState.dy);
+ // limit min height to closed height and max to open height
+ _wrapperStyles.current.style.height = Math.min(Math.max(closedHeight, _height.current + gestureState.dy), openHeight.current);
341
342
if (!horizontal) {
343
// vertical CalenderList header
0 commit comments