Skip to content

Commit

Permalink
prevent scroll reset
Browse files Browse the repository at this point in the history
  • Loading branch information
kielbasa-elp committed Sep 12, 2024
1 parent 2b22d6a commit 587cc2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const ReceiptPage = () => {
useLoaderData<typeof loader>();

const onClose = () => {
navigate(-1);
navigate('..', { preventScrollReset: true });
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ItemPage = () => {
const { transactionItem } = useLoaderData<typeof loader>();

const onClose = () => {
navigate(-1);
navigate('..', { preventScrollReset: true });
};

return (
Expand Down

0 comments on commit 587cc2b

Please sign in to comment.