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 some components (in the video the DropdownMenu component is used) are closed after being opened and you have scrolled on a page, it makes the page scroll to the top and back to where you were.
This behaviour isn't quite noticeable when scroll-behavior: smooth; isn't set, however, it does still happen.
Weirdly, the Popover component does not trigger this behavior.
This also only happens on iOS Safari (and other webkit-based browsers on iOS) and doesn't happen (in normal and responsive modes) on desktop browsers, including macOS Safari.
Describe the bug
When some components (in the video the
DropdownMenu
component is used) are closed after being opened and you have scrolled on a page, it makes the page scroll to the top and back to where you were.This behaviour isn't quite noticeable when
scroll-behavior: smooth;
isn't set, however, it does still happen.Weirdly, the Popover component does not trigger this behavior.
This also only happens on iOS Safari (and other webkit-based browsers on iOS) and doesn't happen (in normal and responsive modes) on desktop browsers, including macOS Safari.
Simulator_Screen_Recording_-_iPhone_15_Pro_-_2024-05-13_at_18.48.02.mp4
Reproduction
https://github.com/DarthGigi/shadcn-safari-mvce
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: