From 85922433a5c3da366635da124e9300c8e6d6ccc6 Mon Sep 17 00:00:00 2001 From: William Welling Date: Fri, 26 Jan 2024 15:50:41 -0600 Subject: [PATCH] NgbTypeahead instance is only defined when model has authority (cherry picked from commit 018d44c61603dd12b685a6ca5ce503d9040f7f2a) --- .../ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts b/src/app/shared/form/builder/ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts index 7805dad1f32..7c3d8982e1a 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts @@ -151,7 +151,7 @@ export class DsDynamicTagComponent extends DsDynamicVocabularyComponent implemen * @param event The value to emit. */ onBlur(event: Event) { - if (isNotEmpty(this.currentValue) && !this.instance.isPopupOpen()) { + if (isNotEmpty(this.currentValue) && (!this.model.hasAuthority || !this.instance.isPopupOpen())) { this.addTagsToChips(); } this.blur.emit(event);