mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
116404: Don't navigate in the expandable navbar section with tab
Had to move the @slide animation to prevent focus being lost when tabbing in the expandable section
(cherry picked from commit c08c2721ac
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
ed27231769
commit
17e03330d0
@@ -102,10 +102,14 @@ export class MenuSectionComponent implements OnInit, OnDestroy {
|
||||
|
||||
/**
|
||||
* Deactivate this section
|
||||
*
|
||||
* @param {Event} event The user event that triggered this method
|
||||
* @param skipEvent Weather the event should still be triggered after deactivating the section or not
|
||||
*/
|
||||
deactivateSection(event: Event) {
|
||||
event.preventDefault();
|
||||
deactivateSection(event: Event, skipEvent = true): void {
|
||||
if (skipEvent) {
|
||||
event.preventDefault();
|
||||
}
|
||||
this.menuService.deactivateSection(this.menuID, this.section.id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user