diff options
Diffstat (limited to 'cds-ui/designer-client/src/app/common')
-rw-r--r-- | cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts b/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts index e0dac0dc3..3435b10d3 100644 --- a/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts +++ b/cds-ui/designer-client/src/app/common/core/canDactivate/ComponentCanDeactivate.ts @@ -7,7 +7,7 @@ export abstract class ComponentCanDeactivate { @HostListener('window:beforeunload', ['$event']) unloadNotification($event: any) { - if (!this.canDeactivate()) { + if (this.canDeactivate()) { $event.returnValue = true; } } |