Skip to content

Commit c00f266

Browse files
authored
fix(combo): fix combo search input theme and type (#15351)
1 parent aa29a7f commit c00f266

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

projects/igniteui-angular/src/lib/combo/combo.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
[width]="itemsWidth || '100%'" (opening)="handleOpening($event)" (closing)="handleClosing($event)"
3737
(opened)="handleOpened()" (closed)="handleClosed()">
3838
<div class="igx-combo__search" *ngIf="displaySearchInput">
39-
<igx-input-group>
39+
<igx-input-group type="line">
4040
<input igxInput #searchInput name="searchInput" autocomplete="off" type="text"
4141
[(ngModel)]="searchValue" (ngModelChange)="handleInputChange($event)" (keyup)="handleKeyUp($event)"
4242
(keydown)="handleKeyDown($event)" (focus)="dropdown.onBlur($event)" [attr.placeholder]="getSearchPlaceholderText()"

projects/igniteui-angular/src/lib/input-group/input-group.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { DOCUMENT, NgIf, NgTemplateOutlet, NgClass, NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common';
22
import {
3-
AfterViewInit,
43
ChangeDetectorRef,
54
Component,
65
ContentChild,
@@ -35,7 +34,7 @@ import { IgxTheme, THEME_TOKEN, ThemeToken } from '../services/theme/theme.token
3534
providers: [{ provide: IgxInputGroupBase, useExisting: IgxInputGroupComponent }],
3635
imports: [NgIf, NgTemplateOutlet, IgxPrefixDirective, IgxButtonDirective, NgClass, IgxSuffixDirective, IgxIconComponent, NgSwitch, NgSwitchCase, NgSwitchDefault]
3736
})
38-
export class IgxInputGroupComponent implements IgxInputGroupBase, AfterViewInit {
37+
export class IgxInputGroupComponent implements IgxInputGroupBase {
3938
/**
4039
* Sets the resource strings.
4140
* By default it uses EN resources.
@@ -453,7 +452,7 @@ export class IgxInputGroupComponent implements IgxInputGroupBase, AfterViewInit
453452
}
454453

455454
/** @hidden @internal */
456-
public ngAfterViewInit() {
455+
public ngAfterContentChecked() {
457456
this.setComponentTheme();
458457
}
459458
}

0 commit comments

Comments
 (0)