We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f74b6 commit 2166223Copy full SHA for 2166223
1 file changed
packages/ra-ui-materialui/src/layout/Notification.tsx
@@ -45,6 +45,9 @@ export const Notification = (props: NotificationProps) => {
45
useEffect(() => {
46
const beforeunload = (e: BeforeUnloadEvent) => {
47
e.preventDefault();
48
+ const confirmationMessage = '';
49
+ e.returnValue = confirmationMessage;
50
+ return confirmationMessage;
51
};
52
53
if (messageInfo?.notificationOptions?.undoable) {
0 commit comments