Skip to content

Commit aac38f3

Browse files
committed
fixup! Fix scroll restoration bugs
1 parent 1fd8de3 commit aac38f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/src/client/components/layout-router.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ function InnerScrollAndFocusHandlerNew(props: ScrollAndFocusHandlerProps) {
354354

355355
const alignToTop = false
356356
disableSmoothScrollDuringRouteTransition(
357+
// @ts-expect-error -- Needs `@types/react-dom` update
357358
domNode.experimental_scrollIntoView.bind(domNode, alignToTop),
358359
{
359360
// We will force layout by querying domNode position

0 commit comments

Comments
 (0)