Skip to content
Snippets Groups Projects
Commit 9a2ffab5 authored by Pierre Ecarlat's avatar Pierre Ecarlat
Browse files

test validatePage update

parent ac921e21
No related branches found
No related tags found
1 merge request!985fix: nvda focus
Pipeline #123937 passed
......@@ -124,10 +124,10 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
@ViewChild('pageTitle') pageTitleElement!: ElementRef;
ngAfterViewInit(): void {
// Un petit délai peut aider à s'assurer que le rendu est terminé
setTimeout(() => {
this.pageTitleElement.nativeElement.focus();
}, 100);
const mainHeader = document.querySelector('#pageTitle');
if (mainHeader) {
(mainHeader as HTMLElement)?.focus();
}
}
constructor(
......@@ -179,9 +179,10 @@ export class OrientationFormViewComponent implements OnInit, AfterContentChecked
public validatePage(event: boolean): void {
this.isPageValid = event;
setTimeout(() => {
this.pageTitleElement.nativeElement.focus();
}, 100);
const mainHeader = document.querySelector('#pageTitle');
if (mainHeader) {
(mainHeader as HTMLElement)?.focus();
}
}
public setFailedOrientation(): void {
......
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