We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11ba779 commit d6f764dCopy full SHA for d6f764d
packages/devextreme/js/__internal/ui/overlay/m_overlay.ts
@@ -365,7 +365,8 @@ class Overlay<
365
const isAttachedTarget = $(window.document).is($target) || isTargetDocument;
366
const isInnerOverlay = $($target).closest(`.${INNER_OVERLAY_CLASS}`).length;
367
const isTargetContent = this._$content?.is($target);
368
- const isTargetInContent = domUtils.contains(this._$content?.get(0), target);
+ const content = this._$content?.get(0);
369
+ const isTargetInContent = content ? domUtils.contains(content, target) : false;
370
371
const isOutsideClick = isAttachedTarget
372
&& !isInnerOverlay
0 commit comments