File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export type FormOptions<
9595 errorSelector : string ;
9696 selectErrorText : boolean ;
9797 stickyNavbar : string ;
98- taintedMessage : string | boolean | null | ( ( ) => MaybePromise < boolean > ) ;
98+ taintedMessage : string | boolean | null | ( ( nav : BeforeNavigate ) => MaybePromise < boolean > ) ;
9999 /**
100100 * Enable single page application (SPA) mode.
101101 * **The string and failStatus options are deprecated** and will be removed in the next major release.
@@ -1227,7 +1227,7 @@ export function superForm<
12271227 // - resolved with false => shouldRedirect = false
12281228 // - resolved with true => shouldRedirect = true
12291229 shouldRedirect = isTaintedFunction
1230- ? await taintedMessage ( )
1230+ ? await taintedMessage ( nav )
12311231 : window . confirm ( message || Tainted . defaultMessage ) ;
12321232 } catch {
12331233 shouldRedirect = false ;
You can’t perform that action at this time.
0 commit comments