Skip to content

Commit 52e8b5c

Browse files
committed
fix(overlay): check if position target is point, #2261
1 parent 1c94cd2 commit 52e8b5c

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/src/lib/services/overlay

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/services/overlay/overlay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ export class IgxOverlayService implements OnDestroy {
653653
// if we should exclude position target check if the click is over it. If so do not close overlay
654654
const positionTarget = info.settings.positionStrategy.settings.target as HTMLElement;
655655
let clickOnPositionTarget = false;
656-
if (positionTarget) {
656+
if (positionTarget && positionTarget.contains) {
657657
clickOnPositionTarget = positionTarget.contains(target);
658658
}
659659

0 commit comments

Comments
 (0)