Skip to content

Commit 3cf66ee

Browse files
committed
Change the way the checkbox is get because of changes to one interface. Fix lint
1 parent a60baa9 commit 3cf66ee

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

projects/igniteui-angular/src/lib/grids/filtering/excel-style/excel-style-search.component.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import {
77
Directive,
88
OnDestroy,
99
HostBinding,
10-
Input
10+
Input,
11+
ViewChildren,
12+
QueryList
1113
} from '@angular/core';
1214
import { IgxInputDirective } from '../../../directives/input/input.directive';
1315
import { DisplayDensity } from '../../../core/density';
@@ -117,6 +119,9 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
117119
@ViewChild('defaultExcelStyleLoadingValuesTemplate', { read: TemplateRef })
118120
protected defaultExcelStyleLoadingValuesTemplate: TemplateRef<any>;
119121

122+
@ViewChildren(IgxCheckboxComponent)
123+
protected checkboxes: QueryList<IgxCheckboxComponent>;
124+
120125
/**
121126
* @hidden @internal
122127
*/
@@ -797,9 +802,7 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy {
797802
const dataItem = this.displayedListData[this.focusedItem.index];
798803
const args: IChangeCheckboxEventArgs = {
799804
checked: !dataItem.isSelected,
800-
owner: {
801-
value: dataItem
802-
}
805+
checkbox: this.checkboxes.find(x => x.value === dataItem)
803806
}
804807
this.onCheckboxChange(args);
805808
}

projects/igniteui-angular/src/lib/list/list-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class IgxListItemComponent implements IListChild {
132132
*/
133133
private lastPanDir = IgxListPanState.NONE;
134134

135-
private _role: string = '';
135+
private _role: string;
136136

137137
/**
138138
* Gets the `panState` of a `list item`.

0 commit comments

Comments
 (0)