Skip to content

Commit e6d57e7

Browse files
authored
Revert "fix #5019 Popover prevents scroll only when it's opened (#5109)" (#5144)
This reverts commit 2984380.
1 parent db5bb1b commit e6d57e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function usePopover(props: AriaPopoverProps, state: OverlayTriggerState):
9393
});
9494

9595
usePreventScroll({
96-
isDisabled: isNonModal || !state.isOpen
96+
isDisabled: isNonModal
9797
});
9898

9999
useLayoutEffect(() => {

0 commit comments

Comments
 (0)