Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified to fix issues in modal backdrop and onclick events handling #708

Closed
wants to merge 1 commit into from
Closed

Conversation

pradeepsekar
Copy link
Contributor

@pradeepsekar pradeepsekar commented Jul 10, 2016

fixes for #687 & #703

  1. This fix will resolve the issue of backdrop being displayed even when
    the user sets backdrop as false.
  2. This will provide option to users to control ignore backdrop clicks.

1. This fix will resolve the issue of backdrop being displayed even when
the user sets backdrop as false.

2. This will provide option to users to control ignore backdrop clicks.
@@ -76,8 +75,7 @@ export class ModalDirective implements AfterViewInit, OnDestroy {

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

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@valorkin valorkin closed this in b39b856 Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants