Skip to content

Commit

Permalink
feat(app-rfi): added autoFocus prop for EmailAddress input
Browse files Browse the repository at this point in the history
UDS-1965
  • Loading branch information
juanmitriatti committed Feb 27, 2025
1 parent 12811db commit dd729b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app-rfi/src/components/appVariants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const variants = {
>
<h4>Step 2 of 2</h4>
<h2>About me</h2>
<EmailAddress gaData={gaData2Of2} />
<EmailAddress autoFocus gaData={gaData2Of2} />
<FirstName gaData={gaData2Of2} />
<LastName gaData={gaData2Of2} />
<Phone gaData={gaData2Of2} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { PII_VALUE } from "../../../core/utils/constants";
/**
* @param {{ gaData: import("../../../../../../shared/services/googleAnalytics").GAEventObject}} props
*/
export const EmailAddress = ({ gaData }) => {
// eslint-disable-next-line react/prop-types
export const EmailAddress = ({ gaData, autoFocus }) => {
const label = "Email Address";
const name = "EmailAddress";

Expand All @@ -18,6 +19,7 @@ export const EmailAddress = ({ gaData }) => {
name={name}
requiredIcon
required
autoFocus={autoFocus}
onBlur={e =>
trackGAEvent({
...gaData,
Expand Down

0 comments on commit dd729b3

Please sign in to comment.