Skip to content

Commit 244170a

Browse files
committed
fix(overlay): check if position target is point, #2261
1 parent 1598e52 commit 244170a

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
@@ -655,7 +655,7 @@ export class IgxOverlayService implements OnDestroy {
655655
// if we should exclude position target check if the click is over it. If so do not close overlay
656656
const positionTarget = info.settings.target as HTMLElement;
657657
let clickOnPositionTarget = false;
658-
if (positionTarget) {
658+
if (positionTarget && positionTarget.contains) {
659659
clickOnPositionTarget = positionTarget.contains(target);
660660
}
661661

0 commit comments

Comments
 (0)