mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +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.
|
* @param event The value to emit.
|
||||||
*/
|
*/
|
||||||
onBlur(event: Event) {
|
onBlur(event: Event) {
|
||||||
if (isNotEmpty(this.currentValue) && !this.instance.isPopupOpen()) {
|
if (isNotEmpty(this.currentValue) && (!this.model.hasAuthority || !this.instance.isPopupOpen())) {
|
||||||
this.addTagsToChips();
|
this.addTagsToChips();
|
||||||
}
|
}
|
||||||
this.blur.emit(event);
|
this.blur.emit(event);
|
||||||
|
Reference in New Issue
Block a user