-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
This bit of the docs appears to be incorrect.
https://headlessui.com/react/popover
Based on the description of #3124 both of the following are intentional, so the fix would be to the docs rather than the code.
modal defaults to false
| modal = false, |
PopoverPanel does not call useOthersInert
headlessui/packages/@headlessui-react/src/components/popover/popover.tsx
Lines 857 to 861 in 045f2bc
| // Ensure we close the popover as soon as the button becomes hidden | |
| useOnDisappear(state.button, () => dispatch({ type: ActionTypes.ClosePopover }), visible) | |
| // Enable scroll locking when the popover is visible, and `modal` is enabled | |
| useScrollLock(ownerDocument, state.__demoMode ? false : modal && visible) |
rub1e
Metadata
Metadata
Assignees
Labels
No labels