Skip to content

Commit

Permalink
Merge pull request DSpace#2861 from DSpace/backport-2777-to-dspace-7_x
Browse files Browse the repository at this point in the history
[Port dspace-7_x] Element reference for typeahead directive is only defined when model has authority
  • Loading branch information
tdonohue authored Mar 8, 2024
2 parents 2178e0e + 8592243 commit 4c693a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c693a1

Please sign in to comment.