Skip to content

Commit a8f3194

Browse files
authored
Merge pull request #2777 from TAMULib/dynamic-tag-on-blur
Element reference for typeahead directive is only defined when model has authority
2 parents a2531e5 + 018d44c commit a8f3194

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
@@ -178,7 +178,7 @@ export class DsDynamicTagComponent extends DsDynamicVocabularyComponent implemen
178178
* @param event The value to emit.
179179
*/
180180
onBlur(event: Event) {
181-
if (isNotEmpty(this.currentValue) && !this.instance.isPopupOpen()) {
181+
if (isNotEmpty(this.currentValue) && (!this.model.hasAuthority || !this.instance.isPopupOpen())) {
182182
this.addTagsToChips();
183183
}
184184
this.blur.emit(event);

0 commit comments

Comments
 (0)