@wavemaker/app-ng-runtime 11.6.0-next.26299 → 11.6.0-next.26302

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.
@@ -349,6 +349,7 @@ class TableComponent extends StylableComponent {
349
349
  this.items = [];
350
350
  this.rowActions = [];
351
351
  this.shownavigation = false;
352
+ this.showFirstRow = false;
352
353
  this.documentClickBind = noop;
353
354
  this.prevFilterExpression = [];
354
355
  this.fieldDefs = [];
@@ -515,7 +516,7 @@ class TableComponent extends StylableComponent {
515
516
  });
516
517
  },
517
518
  // assigns the items on capture phase of the click handler.
518
- assignSelectedItems: (row, e, isRowSelected) => {
519
+ assignSelectedItems: (row, e, rowInfo) => {
519
520
  this.ngZone.run(() => {
520
521
  /*
521
522
  * in case of single select, update the items with out changing the reference.
@@ -523,8 +524,11 @@ class TableComponent extends StylableComponent {
523
524
  */
524
525
  if (this.multiselect) {
525
526
  //Fix for [WMS-25110]: Add row to items list only if the row is selected
526
- if (_.findIndex(this.items, row) === -1 && (isRowSelected === undefined || isRowSelected == true)) {
527
+ if (_.findIndex(this.items, row) === -1 && (rowInfo?._selected === undefined || rowInfo?._selected == true || (this.gridfirstrowselect && rowInfo?.rowId == 0 && !this.showFirstRow))) {
527
528
  this.items.push(row);
529
+ if (rowInfo?.rowId == 0) {
530
+ this.showFirstRow = true;
531
+ }
528
532
  }
529
533
  }
530
534
  else {