Skip to content

Commit 018d44c

Browse files
committed
NgbTypeahead instance is only defined when model has authority
1 parent 5b9a98a commit 018d44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/form/builder/ds-dynamic-form-ui/models/tag/dynamic-tag.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class DsDynamicTagComponent extends DsDynamicVocabularyComponent implemen
151151
* @param event The value to emit.
152152
*/
153153
onBlur(event: Event) {
154-
if (isNotEmpty(this.currentValue) && !this.instance.isPopupOpen()) {
154+
if (isNotEmpty(this.currentValue) && (!this.model.hasAuthority || !this.instance.isPopupOpen())) {
155155
this.addTagsToChips();
156156
}
157157
this.blur.emit(event);

0 commit comments

Comments
 (0)