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
The text was updated successfully, but these errors were encountered:
real-marty
changed the title
Dialog component destroys behavior of nextjs link component
[Catalyst] Dialog component destroys behavior of nextjs link component
Feb 4, 2025
What component (if applicable)
Describe the bug
If a user is not scrolled all the way up and navigates to another page, the page remains scrolled to the same position as the previous page.
This issue is caused by the Dialog component adding the following styles to the
html
:These styles make Next.js
<Link>
components behave unexpectedly. This behavior only occurs on mobile devices and is difficult to detect.To Reproduce
Steps to reproduce the behavior:
sticky
to the top.<Link>
tag.Expected behavior
The Dialog component should not apply these styles so that navigation can function correctly when
fixed
orsticky
positioning is used.Browser/Device (if applicable)
Additional context
Villing to provide more informations if needed. And sample app, where it behaves unexpectedly.
The issue is also on the stack overflow here:
https://stackoverflow.com/a/76449161/20791908
The text was updated successfully, but these errors were encountered: