Skip to content

Commit cd8047a

Browse files
committed
fix
1 parent 755553c commit cd8047a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/ra-core/src/form/useWarnWhenUnsavedChanges.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ export const useWarnWhenUnsavedChanges = (
5555
) {
5656
unblock();
5757
tx.retry();
58+
} else {
59+
if (isSubmitting) {
60+
// Retry the transition in 100ms, until the form is no longer submitting
61+
setTimeout(() => {
62+
tx.retry();
63+
}, 100);
64+
}
5865
}
5966
});
6067

0 commit comments

Comments
 (0)