Skip to content

Commit

Permalink
Merge pull request #2777 from TAMULib/dynamic-tag-on-blur
Browse files Browse the repository at this point in the history
Element reference for typeahead directive is only defined when model has authority
  • Loading branch information
alanorth authored Mar 8, 2024
2 parents a2531e5 + 018d44c commit a8f3194
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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);
Expand Down

0 comments on commit a8f3194

Please sign in to comment.