Skip to content

Commit 9a364f4

Browse files
fix(dashboard): Do not block reload for pristine forms
Relates to #3964
1 parent 503cc38 commit 9a364f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dashboard/src/lib/components/shared/navigation-confirmation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function NavigationConfirmation(props: Readonly<NavigationConfirmationPro
3434
return props.form.formState.isDirty;
3535
},
3636
withResolver: true,
37-
enableBeforeUnload: true,
37+
enableBeforeUnload: () => props.form.formState.isDirty,
3838
});
3939
return (
4040
<Dialog open={status === 'blocked'} onOpenChange={reset}>

0 commit comments

Comments
 (0)