NgbTypeahead instance is only defined when model has authority

(cherry picked from commit 018d44c616)
This commit is contained in:
William Welling
2024-01-26 15:50:41 -06:00
committed by github-actions[bot]
parent 2178e0e6a3
commit 85922433a5

View File

@@ -151,7 +151,7 @@ export class DsDynamicTagComponent extends DsDynamicVocabularyComponent implemen
* @param event The value to emit. * @param event The value to emit.
*/ */
onBlur(event: Event) { onBlur(event: Event) {
if (isNotEmpty(this.currentValue) && !this.instance.isPopupOpen()) { if (isNotEmpty(this.currentValue) && (!this.model.hasAuthority || !this.instance.isPopupOpen())) {
this.addTagsToChips(); this.addTagsToChips();
} }
this.blur.emit(event); this.blur.emit(event);