Skip to content

Commit df280cb

Browse files
committed
Fix scroll position reset on navigation in NotesBrowser using scroll: false
1 parent b962436 commit df280cb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

public/sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/public/NotesBrowser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default function NotesBrowser() {
153153
newParams.set(key, value);
154154
}
155155
});
156-
router.push(`${pathname}?${newParams.toString()}`);
156+
router.push(`${pathname}?${newParams.toString()}`, { scroll: false });
157157
};
158158

159159
function handleDeptClick(dept: any) {

0 commit comments

Comments
 (0)