rsnext/packages
Corey Larson 42abfd694d
Ensures App Router Link respects scroll-behavior: smooth when only hash is changed. (#54243)
Fixes https://github.com/vercel/next.js/issues/54240

The Link component in App Router is not respecting `scroll-behavior: smooth` when only the hash changes.

It appears to be caused by `focusAndScrollRef.onlyHashChange = false` being set before `handleSmoothScroll` is called, causing `htmlElement.style.scrollBehavior` to be overridden to `auto` before `scrollIntoView` is called.

Moving `focusAndScrollRef.onlyHashChange = false` to after `handleSmoothScroll` invocation resolves the issue.
2023-08-18 20:58:45 +00:00
..
create-next-app v13.4.18 2023-08-18 00:16:08 +00:00
eslint-config-next v13.4.18 2023-08-18 00:16:08 +00:00
eslint-plugin-next v13.4.18 2023-08-18 00:16:08 +00:00
font v13.4.18 2023-08-18 00:16:08 +00:00
next Ensures App Router Link respects scroll-behavior: smooth when only hash is changed. (#54243) 2023-08-18 20:58:45 +00:00
next-bundle-analyzer v13.4.18 2023-08-18 00:16:08 +00:00
next-codemod v13.4.18 2023-08-18 00:16:08 +00:00
next-env v13.4.18 2023-08-18 00:16:08 +00:00
next-mdx v13.4.18 2023-08-18 00:16:08 +00:00
next-plugin-storybook v13.4.18 2023-08-18 00:16:08 +00:00
next-polyfill-module v13.4.18 2023-08-18 00:16:08 +00:00
next-polyfill-nomodule v13.4.18 2023-08-18 00:16:08 +00:00
next-swc Fix renamed export of Server Actions (#54241) 2023-08-18 20:41:32 +00:00
react-dev-overlay v13.4.18 2023-08-18 00:16:08 +00:00
react-refresh-utils v13.4.18 2023-08-18 00:16:08 +00:00
third-parties v13.4.18 2023-08-18 00:16:08 +00:00