cat-qw-lib 0.43.33 → 0.43.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1365,8 +1365,10 @@ class BaseFormComponent {
1365
1365
  this.formStateService.setIsFormNavigating(true);
1366
1366
  this.formStateService.selectShowConfirmation().subscribe((showConfirmation) => {
1367
1367
  if (showConfirmation) {
1368
- this.isConfirmDialogOpen = true;
1368
+ event.preventDefault();
1369
+ event.returnValue = 'You have unsaved changes. Do you really want to leave?';
1369
1370
  this.showPrimeNgConfirm();
1371
+ return event.returnValue;
1370
1372
  }
1371
1373
  });
1372
1374
  };
@@ -1378,6 +1380,7 @@ class BaseFormComponent {
1378
1380
  accept: () => {
1379
1381
  this.isConfirmDialogOpen = false;
1380
1382
  window.removeEventListener('beforeunload', this.beforeUnloadHandler); // Allow browser navigation
1383
+ window.location.href = window.location.href;
1381
1384
  },
1382
1385
  reject: () => {
1383
1386
  this.isConfirmDialogOpen = false;