File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
projects/igniteui-angular/src/lib/services/overlay Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -620,13 +620,14 @@ export class IgxOverlayService implements OnDestroy {
620620 return ;
621621 }
622622 if ( info . settings . closeOnOutsideClick ) {
623+ const target = ev . target as any ;
623624 // if the click is on the element do not close this overlay
624- if ( ! info . elementRef . nativeElement . contains ( ev . target ) ) {
625+ if ( ! info . elementRef . nativeElement . contains ( target ) ) {
625626 // if we should exclude position target check if the click is over it. If so do not close overlay
626- const positionTarget = info . settings . positionStrategy . settings . target as any ;
627+ const positionTarget = info . settings . positionStrategy . settings . target as HTMLElement ;
627628 let clickOnPositionTarget = false ;
628629 if ( positionTarget ) {
629- clickOnPositionTarget = positionTarget . contains ( ev . target ) ;
630+ clickOnPositionTarget = positionTarget . contains ( target ) ;
630631 }
631632
632633 if ( ! ( info . settings . excludePositionTarget && clickOnPositionTarget ) ) {
You can’t perform that action at this time.
0 commit comments