Skip to content

Commit

Permalink
Merge pull request #64 from TAMULib/dspace-7_x-sprint5-56-subject-key…
Browse files Browse the repository at this point in the history
…words

NgbTypeahead instance is only defined when model has authority
  • Loading branch information
wwelling authored Jan 30, 2024
2 parents 81058a5 + 230c922 commit 50afcfa
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 50afcfa

Please sign in to comment.