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
Prevent Default Focus Behavior:
Issue: Some drawer components may focus on a specific element upon closing, causing the page to scroll.
Solution: Prevent the default focus behavior when the drawer closes.
Video
Screen.Recording.2024-11-26.at.16.16.21.mov
Bug Description
When using Vaul Drawer in a Vue/Nuxt application with shadcn-ui, the page automatically scrolls to the top even when the Drawer is not displayed.
Steps to Reproduce
Expected Behavior
The page should maintain its scroll position when navigating to a component that contains a Drawer.
Current Behavior
The page automatically scrolls to the top when mounting a component containing a Drawer, even if the Drawer is not visible/active.
Additional Context
:preventScrollRestoration="true"
to the Drawer component doesn't solve the issueEnvironment
Similar bug on React Drawer
The text was updated successfully, but these errors were encountered: