Skip to content

Commit 535e840

Browse files
committed
chore(*): Fix failing tests.
1 parent da2a59e commit 535e840

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5415,7 +5415,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
54155415
* If `headers` is enabled, it will use the column header (if any) instead of the column field.
54165416
*/
54175417
public getSelectedData(formatters = false, headers = false) {
5418-
const source = this.filteredSortedData;
5418+
const source = this.isRowPinningToTop ? [...this.pinnedDataView, ...this.dataView] : [...this.dataView, ...this.pinnedDataView];;
54195419
return this.extractDataFromSelection(source, formatters, headers);
54205420
}
54215421

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.integration.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,8 @@ describe('IgxHierarchicalGrid Integration #hGrid', () => {
832832

833833
pinRowContainer = fixture.debugElement.queryAll(By.css(FIXED_ROW_CONTAINER));
834834
expect(pinRowContainer[0].children.length).toBe(2);
835-
expect(pinRowContainer[0].children[0].context.rowID).toBe('0');
836-
expect(pinRowContainer[0].children[1].context.rowID).toBe('1');
835+
expect(pinRowContainer[0].children[0].context.rowID).toBe('1');
836+
expect(pinRowContainer[0].children[1].context.rowID).toBe('0');
837837
expect(hierarchicalGrid.getRowByIndex(0).rowID).toBe('0');
838838
expect(hierarchicalGrid.getRowByIndex(1).rowID).toBe('1');
839839
expect(hierarchicalGrid.getRowByIndex(2).rowID).toBe('2');

0 commit comments

Comments
 (0)