@evotor-dev/ui-kit 6.9.7 → 6.9.8

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.
@@ -8644,8 +8644,11 @@
8644
8644
  this.destroy$.unsubscribe();
8645
8645
  };
8646
8646
  EvoDropdownComponent.prototype.onOverlayOutsideClick = function (event) {
8647
+ var _a, _b;
8647
8648
  this.outsideClick.emit(event);
8648
- if (this.closeOnOutsideClick) {
8649
+ var originNativeElement = (_b = (_a = this.dropdownOrigin) === null || _a === void 0 ? void 0 : _a.elementRef) === null || _b === void 0 ? void 0 : _b.nativeElement;
8650
+ // check if origin is clicked through overlay
8651
+ if (this.closeOnOutsideClick && !(originNativeElement === null || originNativeElement === void 0 ? void 0 : originNativeElement.contains(event.target))) {
8649
8652
  this.close();
8650
8653
  }
8651
8654
  };