From d71385601d817f3ac5366b6e172befffb4eb52d8 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 17 Mar 2021 12:23:13 -0400 Subject: [PATCH] LP1904036 Combobox supports domId input Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/share/combobox/combobox.component.html | 1 + Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.11.0