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
(cherry picked from commit 018d44c)
  • Loading branch information
wwelling authored and github-actions[bot] committed Mar 8, 2024
1 parent 2178e0e commit 8592243
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 8592243

Please sign in to comment.