File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -727,8 +727,10 @@ export function superForm<
727727
728728 message = message ?? form . message ;
729729
730+ // Form data is not tainted when rebinding.
731+ // Prevents object errors from being revalidated after rebind.
730732 // eslint-disable-next-line dci-lint/private-role-access
731- Form . set ( form . data ) ;
733+ Form . set ( form . data , { taint : false } ) ;
732734 Message . set ( message ) ;
733735 Errors . set ( form . errors ) ;
734736 FormId . set ( form . id ) ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const actions = {
3030 stripPassword ( form ) ,
3131 // @ts -expect-error Backwards compatibility for testing
3232 null ,
33- 'This is a sticky form error and it stays until the form gets submitted again '
33+ 'This is not a sticky form error'
3434 ) ;
3535 }
3636
You can’t perform that action at this time.
0 commit comments