Skip to content

Commit

Permalink
fix(modal): close only one directive modal with one esc pressing (#4223)
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiaMazur authored and valorkin committed Apr 13, 2018
1 parent 9254837 commit 83af591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ModalDirective implements OnDestroy, OnInit {
}

// todo: consider preventing default and stopping propagation
@HostListener('window:keydown.esc', ['$event'])
@HostListener('keydown.esc', ['$event'])
onEsc(event: any): void {
if (!this._isShown) {
return;
Expand Down

0 comments on commit 83af591

Please sign in to comment.