81901: Fix navigation/onclick function ~ enter key

This commit is contained in:
Yura Bondarenko
2021-08-20 09:46:14 +02:00
parent 9d66bc5167
commit 3c4f3e9104
8 changed files with 18 additions and 6 deletions

View File

@@ -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();
}
}