-
It's pretty weird, I'm not sure if I miss something. In the inertia.js document, you can reset the form in $form.post('/profile', {
preserveScroll: true,
onSuccess: () => $form.reset('password'),
}) But in my test, this won't work. $form.put(route('password.update'), {
preserveScroll: true,
// reset in onSuccess won't work
onSuccess: () => $form.reset(),
onError: (errors: any) => {
// reset in onError callback is work
$form.reset()
},
}); I also try oseughu/svelte-starter-kit , and face the same issue. Does anybody have the same issue here? |
Beta Was this translation helpful? Give feedback.
Answered by
yilanboy
Jul 16, 2025
Replies: 1 comment
-
This issue should be fixed in this PR #2437. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yilanboy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue should be fixed in this PR #2437.