Skip to content

Commit 4c693a1

Browse files
authored
Merge pull request DSpace#2861 from DSpace/backport-2777-to-dspace-7_x
[Port dspace-7_x] Element reference for typeahead directive is only defined when model has authority
2 parents 2178e0e + 8592243 commit 4c693a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)