New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data-nextjs-scroll-focus-boundary appears multiple times #42707
Comments
Hi, this is currently expected, as each segment introduces its own boundary. Refer to the docs: https://beta.nextjs.org/docs/routing/linking-and-navigating#focus-and-scroll-management |
Interesting. If I want to have my header stay at the top of the screen what should I do? It does not change on navigation so it is hidden at the top of the screen, and I am scrolled to the element below it that has changed. |
Right, this is very annoying. |
I think this should be reopened because the current behaviour completely breaks any layout relying on css grid or similar, by nesting an arbitrary number of divs inside the parent. |
Found a fix by adding this to my @layer base {
[data-nextjs-scroll-focus-boundary] {
display: contents;
}
} |
Similar to @birkj , just added
|
This seems like how it should have been implemented from the start, but also may break some of twhat next team is planning to do with advanced routings (definitely will). I think instead they are going to have to do something like use agree though - reminds me of the days before |
It was fixed in the last canary |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
npm run build on personal server
Describe the Bug
This occurs with npm run dev and npm run build.
data-nextjs-scroll-focus-boundary
Appears multiple times nested when using a component with 'use client'
Expected Behavior
It should only appear once.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://git.thewilsonnet.com/thewilsonnet/thewilsonnet.com
To Reproduce
Clone repo
npm install
npm run dev or deploy.
Go to /about/resume
Live example: https://thewilsonnet.com/about/resume
The text was updated successfully, but these errors were encountered: