@evotor-dev/ui-kit 7.4.5 → 7.4.6

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.
@@ -7235,7 +7235,9 @@ class EvoDropdownComponent {
7235
7235
  }
7236
7236
  onOverlayOutsideClick(event) {
7237
7237
  this.outsideClick.emit(event);
7238
- if (this.closeOnOutsideClick) {
7238
+ const originNativeElement = this.dropdownOrigin?.elementRef?.nativeElement;
7239
+ // check if origin is clicked through overlay
7240
+ if (this.closeOnOutsideClick && !originNativeElement?.contains(event.target)) {
7239
7241
  this.close();
7240
7242
  }
7241
7243
  }