Skip to content

Commit

Permalink
fix(modal): don't hide on out click if backdrop === 'static'
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienverge committed Jun 20, 2016
1 parent 47c8f27 commit f59dbd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/modal/modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export class ModalDirective implements AfterViewInit, OnDestroy {

@HostListener('click', ['$event'])
protected onClick(event:any):void {
if (event.target === this.element.nativeElement) {
if (this.config.backdrop !== 'static' &&
event.target === this.element.nativeElement) {
this.hide(event);
}
}
Expand Down

0 comments on commit f59dbd8

Please sign in to comment.