From 061349efb0ce65079e01ca9420b1c4eaabf731c2 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 30 Sep 2022 10:23:53 +0200 Subject: [PATCH] fix(frontend): fix typo in navigate-away-prompt --- frontend/src/utils/form/navigate-away-prompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/form/navigate-away-prompt.js b/frontend/src/utils/form/navigate-away-prompt.js index 077279e13..2f72c355d 100644 --- a/frontend/src/utils/form/navigate-away-prompt.js +++ b/frontend/src/utils/form/navigate-away-prompt.js @@ -107,7 +107,7 @@ export class NavigateAwayPrompt { // allow the event to happen if the form was not touched by the // user (i.e. if the current FormData is equal to the initial FormData) // or the unload event was initiated by a form submit - if (!formDataHasChanged || this.unloadDueToSubmit || this._parentModalIsClosed()) + if (!formDataHasChanged || this._unloadDueToSubmit || this._parentModalIsClosed()) return; // cancel the unload event. This is the standard to force the prompt to appear.