|
7 | 7 | TemplateRef, |
8 | 8 | Directive, |
9 | 9 | OnDestroy, |
10 | | - AfterViewInit, |
11 | 10 | ElementRef, |
12 | 11 | Input, |
13 | 12 | ViewRef |
@@ -97,7 +96,7 @@ export class IgxExcelStylePinningTemplateDirective { |
97 | 96 | selector: 'igx-grid-excel-style-filtering', |
98 | 97 | templateUrl: './grid.excel-style-filtering.component.html' |
99 | 98 | }) |
100 | | -export class IgxGridExcelStyleFilteringComponent implements OnDestroy, AfterViewInit { |
| 99 | +export class IgxGridExcelStyleFilteringComponent implements OnDestroy { |
101 | 100 | private static readonly filterOptimizationThreshold = 2; |
102 | 101 |
|
103 | 102 | private shouldOpenSubMenu = true; |
@@ -314,17 +313,6 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy, AfterView |
314 | 313 | this.destroy$.complete(); |
315 | 314 | } |
316 | 315 |
|
317 | | - /** |
318 | | - * @hidden @internal |
319 | | - */ |
320 | | - ngAfterViewInit(): void { |
321 | | - if (this.excelStyleSearch.column) { |
322 | | - requestAnimationFrame(() => { |
323 | | - this.excelStyleSearch.searchInput.nativeElement.focus(); |
324 | | - }); |
325 | | - } |
326 | | - } |
327 | | - |
328 | 316 | private init() { |
329 | 317 | this.expressionsList = new Array<ExpressionUI>(); |
330 | 318 | this.filteringService.generateExpressionsList(this.column.filteringExpressionsTree, this.grid.filteringLogic, this.expressionsList); |
@@ -361,6 +349,12 @@ export class IgxGridExcelStyleFilteringComponent implements OnDestroy, AfterView |
361 | 349 |
|
362 | 350 | this._subMenuOverlaySettings.outlet = (this.grid as any).outlet; |
363 | 351 |
|
| 352 | + if (this.excelStyleSearch.column) { |
| 353 | + requestAnimationFrame(() => { |
| 354 | + this.excelStyleSearch.searchInput.nativeElement.focus(); |
| 355 | + }); |
| 356 | + } |
| 357 | + |
364 | 358 | this.grid.onColumnMoving.pipe(takeUntil(this.destroy$)).subscribe(() => { |
365 | 359 | this.closeDropdown(); |
366 | 360 | }); |
|
0 commit comments