Skip to content

Commit 2cba0dd

Browse files
committed
fix(esf): Do not focus searchInput in external filtering #1703
1 parent 233b454 commit 2cba0dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,11 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy, AfterView
318318
* @hidden @internal
319319
*/
320320
ngAfterViewInit(): void {
321-
requestAnimationFrame(() => {
322-
this.excelStyleSearch.searchInput.nativeElement.focus();
323-
});
321+
if (this.excelStyleSearch.column) {
322+
requestAnimationFrame(() => {
323+
this.excelStyleSearch.searchInput.nativeElement.focus();
324+
});
325+
}
324326
}
325327

326328
private init() {

0 commit comments

Comments
 (0)