mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
81901: Fix navigation/onclick function ~ enter key
This commit is contained in:
@@ -36,10 +36,11 @@ export class LinkMenuItemComponent implements OnInit {
|
||||
}
|
||||
|
||||
navigate(event: any) {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
if (this.getRouterLink()) {
|
||||
this.router.navigate([this.getRouterLink()]);
|
||||
}
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user