Skip to content

Commit

Permalink
Merge pull request #2192 from ORCID/fix/9123-qa-do-not-auto-focus-fir…
Browse files Browse the repository at this point in the history
…st-field-in-signin-form

fix: Remove autofocus if new sign in togglz is enabled
  • Loading branch information
leomendoza123 authored Mar 13, 2024
2 parents 90d2fc2 + 05287b0 commit 4479b1b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ export class FormSignInComponent implements OnInit, AfterViewInit, OnDestroy {
}

ngAfterViewInit(): void {
this.firstInput.nativeElement.focus()
this.cd.detectChanges()
if (!this.signInUpdatesV1Togglz) {
this.firstInput.nativeElement.focus()
this.cd.detectChanges()
}
}

onSubmit() {
Expand Down

0 comments on commit 4479b1b

Please sign in to comment.