fix(frontend): fix typo in navigate-away-prompt
This commit is contained in:
parent
cf9184b72d
commit
061349efb0
@ -107,7 +107,7 @@ export class NavigateAwayPrompt {
|
|||||||
// allow the event to happen if the form was not touched by the
|
// 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)
|
// user (i.e. if the current FormData is equal to the initial FormData)
|
||||||
// or the unload event was initiated by a form submit
|
// or the unload event was initiated by a form submit
|
||||||
if (!formDataHasChanged || this.unloadDueToSubmit || this._parentModalIsClosed())
|
if (!formDataHasChanged || this._unloadDueToSubmit || this._parentModalIsClosed())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// cancel the unload event. This is the standard to force the prompt to appear.
|
// cancel the unload event. This is the standard to force the prompt to appear.
|
||||||
|
|||||||
Reference in New Issue
Block a user