Skip to content

Commit

Permalink
Fixed #10809 - Dismissable Mask and Escape on Dynamic Dialogue
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Nov 8, 2021
1 parent ee25550 commit 5d06708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dynamicdialog/dynamicdialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy {

this.documentEscapeListener = this.renderer.listen(documentTarget, 'keydown', (event) => {
if (event.which == 27) {
if (parseInt(this.container.style.zIndex) == (DomHandler.zindex + (this.config.baseZIndex ? this.config.baseZIndex : 0))) {
if (parseInt(this.container.style.zIndex) == ZIndexUtils.getCurrent()) {
this.hide();
}
}
Expand Down

0 comments on commit 5d06708

Please sign in to comment.