Skip to content

Commit 944fd6e

Browse files
committed
fix: preserve scroll position on profile update
1 parent 136df43 commit 944fd6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/js/pages/settings/Profile.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ const form = useForm({
3636
});
3737
3838
const submit = () => {
39-
form.patch(route('profile.update'));
39+
form.patch(route('profile.update'), {
40+
preserveScroll: true,
41+
});
4042
};
4143
</script>
4244

0 commit comments

Comments
 (0)