Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Set a non-empty returnValue so older browsers still ask before leaving

Claude2a09371f31a7
diff --git a/src/components/signing/signing-live-shell.tsx b/src/components/signing/signing-live-shell.tsx
index a5b03cd..0033ea8 100644
--- a/src/components/signing/signing-live-shell.tsx
+++ b/src/components/signing/signing-live-shell.tsx
@@ -594,7 +594,7 @@ export function SigningLiveShell({
event.preventDefault();
// Older browsers ask only when this is set.
- event.returnValue = "";
+ event.returnValue = " ";
}
window.addEventListener("beforeunload", warnBeforeLeaving);