From a88c5804b5870fc6217b4b3b0b379cbb2515c494 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 26 Jan 2022 12:09:53 -0500 Subject: [PATCH] LP1904036 Patron edit replace barcode fixes Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts index f9282963cf..c5afd227f8 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts @@ -1611,6 +1611,13 @@ export class EditComponent implements OnInit, AfterViewInit { this.patron.card(card); this.patron.cards().push(card); + + // Focus the barcode input + setTimeout(() => { + this.emitSaveState(); + const node = document.getElementById('ac-barcode-input'); + node.focus(); + }); } showBarcodes() { -- 2.11.0