bugfixes HostListener
This commit is contained in:
parent
67eecc0341
commit
b1da599dec
1 changed files with 4 additions and 1 deletions
|
|
@ -38,7 +38,10 @@ export class OverlayComponent implements OnInit {
|
|||
@HostListener('document:click', ['$event'])
|
||||
checkOpenContactEdit(event: MouseEvent) {
|
||||
const targetElement = event.target as HTMLElement;
|
||||
if (targetElement.closest('.overlay')) {
|
||||
if (
|
||||
targetElement.closest('.overlay') &&
|
||||
!targetElement.closest('.overlay-content')
|
||||
) {
|
||||
this.onCloseOverlay();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue