spectrum-web-components
spectrum-web-components copied to clipboard
[Bug]: Scrolling on non-scrollable elements inside overlay closes the overlay
Code of conduct
- [x] I agree to follow this project's code of conduct.
Impacted component(s)
Overlay
Expected behavior
If a user scrolls with mouse wheel or trackpad on a non-scrollable element (short picker etc.) inside an overlay should not close the overlay.
Actual behavior
If an overlay with type="auto" (to a fixed reference element) is opened and user tries to scroll over contained elements (such as pickers etc.) - it will close the overlay.
Screenshots
No response
What browsers are you seeing the problem in?
Chrome
How can we reproduce this issue?
- Go to https://studio.webcomponents.dev/edit/hhGVPdOsiEgFhwZomdsF/src/index.ts?p=stories
- Click on the button to open overlay
- Open picker and scroll over it with mouse wheel
- Overlay is closed
This does not happen if the overlay is opened with type="modal", see: https://studio.webcomponents.dev/edit/T4qvf6VdDIDu5X2IQI3j/src/index.ts?p=stories
Sample code or abstract reproduction which illustrates the problem
No response
Severity
SEV 4
Logs taken while reproducing problem
No response
SWC-692
To be fixed by https://github.com/adobe/spectrum-web-components/pull/5308