Skip to content

Commit 7496ba2

Browse files
committed
Cancel fix
1 parent 1e7ce0e commit 7496ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/client/formEnhance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ export function formEnhance<T extends AnyZodObject, M>(
561561
}
562562

563563
// Redirect messages are handled in onDestroy and afterNavigate.
564-
if (result.type != 'redirect') {
564+
if (cancelled || result.type != 'redirect') {
565565
htmlForm.completed(cancelled);
566566
}
567567
}

0 commit comments

Comments
 (0)