From c4bd20445a116962d9b3c799c05b24a94949eafb Mon Sep 17 00:00:00 2001 From: Volha Mardvilka Date: Wed, 16 Apr 2025 09:19:45 +0000 Subject: [PATCH] 410755779: (fix) changes to move focus to the first interactive elem on opened page --- modules/ui/src/app/app.component.html | 1 + modules/ui/src/app/app.component.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ui/src/app/app.component.html b/modules/ui/src/app/app.component.html index 0b386ce8d..fe53f12c4 100644 --- a/modules/ui/src/app/app.component.html +++ b/modules/ui/src/app/app.component.html @@ -167,6 +167,7 @@

Testrun

mat-button routerLink="{{ route }}" routerLinkActive="app-sidebar-button-active" + (keydown.space)="onNavigationClick()" (keydown.enter)="onNavigationClick()"> {{ diff --git a/modules/ui/src/app/app.component.ts b/modules/ui/src/app/app.component.ts index 309940424..2f1799022 100644 --- a/modules/ui/src/app/app.component.ts +++ b/modules/ui/src/app/app.component.ts @@ -326,7 +326,8 @@ export class AppComponent implements AfterViewInit { take(1) ) .subscribe(() => { - this.appStore.setFocusOnPage(null); + const mainContainer = window.document.querySelector('#main'); + this.appStore.setFocusOnPage(mainContainer); }); }