Skip to content

Commit

Permalink
NgbTypeahead instance is only defined when model has authority
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Jan 26, 2024
1 parent 5b9a98a commit 018d44c
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 018d44c

Please sign in to comment.