This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
馃悰Bug: Dialog background on docs page scrolls even when modal is true on mobile (iOS 16.4.1) #146
Labels
bug
Something isn't working
Describe the bug
Dialog background is sometimes scrollable even when modal prop is true. It's happening on https://www.radix-svelte.com/docs/dialog and I didn't try if it happens with the actual component.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Background not scrolling when modal is true.
Screenshots
https://github.com/TGlide/radix-svelte/assets/40706601/89e10475-e9b9-4d5c-bf8d-4bc99fdea14f
Smartphone (please complete the following information):
Additional context
Sometimes the scroll is not possible, sometimes it is. I couldn't tell when exactly. This could also be related to the docs' implementation not the component itself.
Edit: Seems like it might be related to viewport size changing. In the video below, I'm not able to scroll the background if the bottom bar of safari is in its expanded/default state. However, I can scroll the background if the bottom bar is in it's collapsed state.
https://github.com/TGlide/radix-svelte/assets/40706601/734255ba-e23a-40ef-9690-75a6c76f50e1
The text was updated successfully, but these errors were encountered: