Skip to content

Commit d039baa

Browse files
Add preserveScroll option to profile update request (#20)
* feat: add the script to format * fix: fun the format command * fix: preserve scroll position on profile update * wip
1 parent bc5d88a commit d039baa

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)