From 50596da0f2a0de4463fc341720849ab0cc90408b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 30 Nov 2023 15:08:10 +0100 Subject: [PATCH] MOBILE-3947 chore: Change Combobox select mandatory child --- src/core/components/combobox/combobox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }