Skip to content
Snippets Groups Projects
Commit 5295844b authored by Marlène SIMONDANT's avatar Marlène SIMONDANT
Browse files

Merge branch 'dev' into 660-tableau-de-bord-interface

parents 9c753206 5f66f4dc
No related branches found
No related tags found
2 merge requests!993Draft: Notif,!983feat(dashboard) : create dashboard !
...@@ -162,10 +162,6 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -162,10 +162,6 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
public validatePage(event: boolean): void { public validatePage(event: boolean): void {
this.isPageValid = event; this.isPageValid = event;
const mainHeader = document.querySelector('#pageTitle');
if (mainHeader) {
(mainHeader as HTMLElement)?.focus();
}
} }
public setFailedOrientation(): void { public setFailedOrientation(): void {
...@@ -263,6 +259,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -263,6 +259,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
this.updateHiddenNavButtons(); this.updateHiddenNavButtons();
this.updateFullScreen(); this.updateFullScreen();
this.updateLastStep(); this.updateLastStep();
this.focusOnTop();
} }
public prevPage(): void { public prevPage(): void {
...@@ -278,6 +275,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -278,6 +275,7 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
this.updateHiddenNavButtons(); this.updateHiddenNavButtons();
this.updateFullScreen(); this.updateFullScreen();
this.updateLastStep(); this.updateLastStep();
this.focusOnTop();
} }
private goToNextStep(): void { private goToNextStep(): void {
...@@ -437,6 +435,13 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked ...@@ -437,6 +435,13 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
this.filters = []; this.filters = [];
} }
private focusOnTop(): void {
const mainHeader = document.querySelector('#pageTitle');
if (mainHeader) {
(mainHeader as HTMLElement)?.focus();
}
}
/** /**
* Indicators * Indicators
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment