fix(web-components/bottom-sheet): scrollable elements does not work with `variant="modal"` on Safari · Issue #483 · Tap30/web-components · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a <BottomSheet variant="modal"> contains any scrollable element in its body slot—for example, a <Pinwheel>—the inner element cannot be scrolled on Safari iOS. It appears that the body‑lock applied by the modal variant prevents touch‑scroll events from propagating to the scrollable child, leaving the pinwheel “stuck” at its initial position.
To Reproduce:
Render a modal bottom‑sheet
Add a scrollable element in the body slot (e.g. a pinwheel):
The pinwheel (or any other scrollable child) should scroll normally inside the modal bottom‑sheet.
Desktop (please complete the following information):
OS: macOS 14.4.1
Browser: Safari 17.4.1
@tapsioss/web-components: v0.12.2
Additional context:
The same component set works as expected on Chrome Android and in desktop browsers.
Replacing variant="modal" by variant="inline" restores scrolling on Safari iOS.
The text was updated successfully, but these errors were encountered:
saraparsa13
changed the title
fix(web-components/bottom-sheet): scrollable elements does not work with variant="inline"
fix(web-components/bottom-sheet): scrollable elements does not work with variant="modal"May 14, 2025
saraparsa13
changed the title
fix(web-components/bottom-sheet): scrollable elements does not work with variant="modal"
fix(web-components/bottom-sheet): scrollable elements does not work with variant="modal" on Safari
May 14, 2025
Describe the bug:
When a
<BottomSheet variant="modal">
contains any scrollable element in itsbody
slot—for example, a<Pinwheel>
—the inner element cannot be scrolled on Safari iOS. It appears that the body‑lock applied by the modal variant prevents touch‑scroll events from propagating to the scrollable child, leaving the pinwheel “stuck” at its initial position.To Reproduce:
Expected behavior:
The pinwheel (or any other scrollable child) should scroll normally inside the modal bottom‑sheet.
Desktop (please complete the following information):
Additional context:
variant="modal"
byvariant="inline"
restores scrolling on Safari iOS.The text was updated successfully, but these errors were encountered: