Open
Description
🐛 Bug Report
A non-modal popover allows page and popover to scroll even when the target is fixed.
The new documentation search box feature in development includes a SearchAutocomplete combo box in a page header that has position: fixed
- Open https://reactspectrum.blob.core.windows.net/reactspectrum/d5aed9e2838b40d54ba7e7ba7a7a77f8fec212c6/docs/react-spectrum/index.html
- Enter some characters to search into the SearchAutocomplete, which should open a popover displaying the results.
- With the popover open, use the mouse wheel to scroll the page.
🤔 Expected Behavior
The popover should not scroll with the underlying page, but should remain positioned relative to the SearchAutocomplete.
😯 Current Behavior
The popover scrolls with the page on top of the SearchAutocomplete contained in the page header with position: fixed
.
💁 Possible Solution
isNonModal
should not disable usePreventScroll
at:
react-spectrum/packages/@react-aria/overlays/src/usePopover.ts
Lines 99 to 107 in b35d5c0
🔦 Context
💻 Code Sample
🌍 Your Environment
Software | Version(s) |
---|---|
react-spectrum | @react-aria/[email protected] |
Browser | All |
Operating System | macOS |
🧢 Your Company/Team
Adobe/Accessibility
🕷 Tracking Issue (optional)
Metadata
Metadata
Assignees
Labels
No labels