igniteui-angular 21.2.3 → 21.2.4

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.
@@ -3727,11 +3727,13 @@ class IgxGridBaseDirective {
3727
3727
  }
3728
3728
  return;
3729
3729
  }
3730
- // do not hide the overlay if it's attached to a row
3731
- if (this.rowEditingOverlay?.overlayId === event.id) {
3730
+ const inRow = overlaySettings?.target?.classList.contains("igx-grid__tr");
3731
+ // do not hide the overlay if it's attached to a row on scroll
3732
+ if (inRow) {
3732
3733
  return;
3733
3734
  }
3734
- if (overlaySettings?.outlet === this.outlet && this.overlayIDs.indexOf(event.id) === -1) {
3735
+ const isInGrid = overlaySettings?.target instanceof Node && this.tbody.nativeElement.contains(overlaySettings?.target);
3736
+ if (isInGrid && this.overlayIDs.indexOf(event.id) === -1) {
3735
3737
  this.overlayIDs.push(event.id);
3736
3738
  }
3737
3739
  });