Browse Source

Merge pull request #2141 from yinchang0626/feature/fix_modal

fix(theme-shared):fix #2107,when use Esc key to close modal ,should trigger destroy to avoid raise an error
pull/2146/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
2f016668bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.ts

1
npm/ng-packs/packages/theme-shared/src/lib/components/modal/modal.component.ts

@ -44,6 +44,7 @@ export class ModalComponent implements OnDestroy {
} else {
this.renderer.removeClass(document.body, 'modal-open');
this.disappear.emit();
this.destroy$.next();
}
}

Loading…
Cancel
Save