mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Trying to correct an error in the focus implementation
(cherry picked from commit 73d39abfe5
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
8e25c178eb
commit
5d410b7c53
@@ -75,7 +75,7 @@ export class VocabularyTreeviewComponent implements OnDestroy, OnInit, OnChanges
|
|||||||
/**
|
/**
|
||||||
* Implemented to manage focus on input
|
* Implemented to manage focus on input
|
||||||
*/
|
*/
|
||||||
@ViewChild('searchInput') searchInput: ElementRef;
|
@ViewChild('searchInput') searchInput!: ElementRef;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link VocabularyOptions} object
|
* The {@link VocabularyOptions} object
|
||||||
@@ -339,8 +339,10 @@ export class VocabularyTreeviewComponent implements OnDestroy, OnInit, OnChanges
|
|||||||
this.storedNodeMap = new Map<string, TreeviewFlatNode>();
|
this.storedNodeMap = new Map<string, TreeviewFlatNode>();
|
||||||
this.vocabularyTreeviewService.restoreNodes();
|
this.vocabularyTreeviewService.restoreNodes();
|
||||||
}
|
}
|
||||||
|
if (this.searchInput) {
|
||||||
this.searchInput.nativeElement.focus();
|
this.searchInput.nativeElement.focus();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
add() {
|
add() {
|
||||||
const userVocabularyEntry = {
|
const userVocabularyEntry = {
|
||||||
|
Reference in New Issue
Block a user