mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
NgbTypeahead instance is only defined when model has authority
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user