mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
116404: Prevent the opening from the modal using mouse interactions from automatically focussing on the first element
(cherry picked from commit 82ed3aadff
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
a984957af9
commit
7de6aa0e24
@@ -72,9 +72,11 @@ export class MenuSectionComponent implements OnInit, OnDestroy {
|
||||
* Set initial values for instance variables
|
||||
*/
|
||||
ngOnInit(): void {
|
||||
this.menuService.isSectionActive(this.menuID, this.section.id).pipe(distinctUntilChanged()).subscribe((isActive: boolean) => {
|
||||
this.active$.next(isActive);
|
||||
});
|
||||
this.subs.push(this.menuService.isSectionActive(this.menuID, this.section.id).pipe(distinctUntilChanged()).subscribe((isActive: boolean) => {
|
||||
if (this.active$.value !== isActive) {
|
||||
this.active$.next(isActive);
|
||||
}
|
||||
}));
|
||||
this.initializeInjectorData();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user