From: Bill Erickson Date: Wed, 17 Mar 2021 16:23:13 +0000 (-0400) Subject: LP1904036 Combobox supports domId input X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d71385601d817f3ac5366b6e172befffb4eb52d8;p=working%2FEvergreen.git LP1904036 Combobox supports domId input Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html index c48d981fd4..ee66668e12 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html @@ -21,6 +21,7 @@ 'form-control-sm': smallFormControl }" [placeholder]="placeholder" + [id]="domId" [name]="name" [disabled]="isDisabled" [required]="isRequired" diff --git a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts index 7df59e8ddb..bbd39f1124 100644 --- a/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts +++ b/Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts @@ -47,7 +47,9 @@ export class IdlClassTemplateDirective { multi: true }] }) -export class ComboboxComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges { +export class ComboboxComponent + implements ControlValueAccessor, OnInit, AfterViewInit, OnChanges { + static domIdAuto = 0; selected: ComboboxEntry;