Skip to content

Commit 91f63a6

Browse files
authored
Cap overlay max height to 100vh on initial render (#6525)
1 parent ddb63ae commit 91f63a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@react-aria/overlays/src/useOverlayPosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export function useOverlayPosition(props: AriaPositionProps): PositionAria {
250250
position: 'absolute',
251251
zIndex: 100000, // should match the z-index in ModalTrigger
252252
...position.position,
253-
maxHeight: position.maxHeight
253+
maxHeight: position.maxHeight ?? '100vh'
254254
}
255255
},
256256
placement: position.placement,

0 commit comments

Comments
 (0)