@talrace/ngx-noder 19.0.24 → 19.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1718,11 +1718,11 @@ class OverlayService {
|
|
|
1718
1718
|
this.openedSubscription = fromEvent(document, 'mousedown')
|
|
1719
1719
|
.pipe(filter(event => {
|
|
1720
1720
|
const clickTarget = event.target;
|
|
1721
|
-
return this.overlayRef &&
|
|
1721
|
+
return (this.overlayRef &&
|
|
1722
|
+
!this.overlayRef.overlayElement.contains(clickTarget) &&
|
|
1723
|
+
this.overlayRef.overlayElement.parentElement.parentElement.children.length === 1);
|
|
1722
1724
|
}), take(1))
|
|
1723
|
-
.subscribe(() =>
|
|
1724
|
-
this.close();
|
|
1725
|
-
});
|
|
1725
|
+
.subscribe(() => this.close());
|
|
1726
1726
|
}
|
|
1727
1727
|
getOverlayConfig(xPosition, yPosition) {
|
|
1728
1728
|
return new OverlayConfig({
|