diff --git a/src/core/components/combobox/combobox.ts b/src/core/components/combobox/combobox.ts index 05d0d7d25..97414ae21 100644 --- a/src/core/components/combobox/combobox.ts +++ b/src/core/components/combobox/combobox.ts @@ -51,7 +51,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; }) export class CoreComboboxComponent implements ControlValueAccessor { - @ViewChild(IonSelect) select!: IonSelect; + @ViewChild(IonSelect) select?: IonSelect; @Input() interface: 'popover' | 'modal' = 'popover'; @Input() label = Translate.instant('core.show'); // Aria label. @@ -118,7 +118,7 @@ export class CoreComboboxComponent implements ControlValueAccessor { async openSelect(event?: UIEvent): Promise { this.touch(); - if (this.interface == 'modal') { + if (this.interface === 'modal') { if (this.expanded || !this.modalOptions) { return; }