Skip to content

Commit 9e9d0b9

Browse files
committed
fix(overlay): check if position target is point, #2261
1 parent c58a10d commit 9e9d0b9

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

0 commit comments

Comments
 (0)