Skip to content

Commit 5dadf21

Browse files
fix: add preserveScroll option to profile update (laravel#32)
1 parent 18fe230 commit 5dadf21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/js/pages/settings/profile.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export default function Profile({ mustVerifyEmail, status }: { mustVerifyEmail:
3030
const submit: FormEventHandler = (e) => {
3131
e.preventDefault();
3232

33-
patch(route('profile.update'));
33+
patch(route('profile.update'), {
34+
preserveScroll: true,
35+
});
3436
};
3537

3638
return (

0 commit comments

Comments
 (0)