u2w-merge #192

Merged
savau merged 344 commits from u2w-merge into master 2022-09-02 18:00:29 +02:00
Showing only changes of commit a5e666d155 - Show all commits

View File

@ -107,13 +107,8 @@ 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)
if (!formDataHasChanged || this.unloadDueToSubmit)
return;
if(this._unloadDueToSubmit) {
return;
}
// cancel the unload event. This is the standard to force the prompt to appear.
event.preventDefault();