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
I have anchor links in my drawer which should scroll the page to a certain id / position.
On Safari the scroll does not happen if position: fixed !important! is applied to the body. A noBodyStyles={true} on the root fixes this problem but also changes the general behavior which I would like to avoid.
Another problem is that if the drawer is closed, the page will scroll back to the position where the trigger is. A preventScrollRestoration={true} does not solve the problem.
Here is an example with: <Drawer.Root preventScrollRestoration={true} noBodyStyles={true}>
Screen.Recording.2024-11-19.at.15.08.26.mov
The text was updated successfully, but these errors were encountered:
I have anchor links in my drawer which should scroll the page to a certain id / position.
On Safari the scroll does not happen if
position: fixed !important!
is applied to the body. AnoBodyStyles={true}
on the root fixes this problem but also changes the general behavior which I would like to avoid.Another problem is that if the drawer is closed, the page will scroll back to the position where the trigger is. A
preventScrollRestoration={true}
does not solve the problem.Here is an example with:
<Drawer.Root preventScrollRestoration={true} noBodyStyles={true}>
Screen.Recording.2024-11-19.at.15.08.26.mov
The text was updated successfully, but these errors were encountered: