@evotor-dev/ui-kit 7.4.5 → 7.4.7

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.
@@ -3657,7 +3657,7 @@ class EvoIconButtonComponent {
3657
3657
  this.updateClassesList();
3658
3658
  }
3659
3659
  ngOnChanges(changes) {
3660
- if (changes.color !== undefined || changes.theme !== undefined || this.notificationDot) {
3660
+ if (changes.color !== undefined || changes.theme !== undefined || changes.notificationDot) {
3661
3661
  this.updateClassesList();
3662
3662
  }
3663
3663
  }
@@ -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
  }