From 5da920e9501a08cd87baa42a1e0400d5d86952d9 Mon Sep 17 00:00:00 2001 From: Gabriel Dias Date: Fri, 24 Jun 2022 16:52:30 -0300 Subject: [PATCH] fix(modal): fix the closure of modal when clicking of scrollbar in some browsers --- src/modal/modal-container.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modal/modal-container.component.ts b/src/modal/modal-container.component.ts index fc6abd20fb..802036bbbf 100644 --- a/src/modal/modal-container.component.ts +++ b/src/modal/modal-container.component.ts @@ -84,7 +84,7 @@ export class ModalContainerComponent implements OnInit, OnDestroy { this.clickStartedInContent = event.target !== this._element.nativeElement; } - @HostListener('mouseup', ['$event']) + @HostListener('click', ['$event']) onClickStop(event: MouseEvent): void { const clickedInBackdrop = event.target === this._element.nativeElement && !this.clickStartedInContent; if (