Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
9a2ffab5
Commit
9a2ffab5
authored
1 day ago
by
Pierre Ecarlat
Browse files
Options
Downloads
Patches
Plain Diff
test validatePage update
parent
ac921e21
No related branches found
No related tags found
1 merge request
!985
fix: nvda focus
Pipeline
#123937
passed
1 day ago
Stage: build
Stage: deploy
Stage: quality
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/form/orientation-form-view/orientation-form-view.component.ts
+8
-7
8 additions, 7 deletions
.../orientation-form-view/orientation-form-view.component.ts
with
8 additions
and
7 deletions
src/app/form/orientation-form-view/orientation-form-view.component.ts
+
8
−
7
View file @
9a2ffab5
...
...
@@ -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
.
native
Element
.
focus
();
}
,
100
);
const
mainHeader
=
document
.
querySelector
(
'
#pageTitle
'
);
if
(
mainHeader
)
{
(
mainHeader
as
HTML
Element
)?
.
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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment