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
(cherry picked from commit 018d44c616
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
2178e0e6a3
commit
85922433a5
@@ -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