-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W-12627118 - add autocomplete to text input fields (#1840)
* add autocomplete to text input fields
- Loading branch information
Showing
8 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ export default function useLoginFields({ | |
placeholder: '[email protected]', | ||
defaultValue: '', | ||
type: 'email', | ||
autoComplete: 'email', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter your email address.', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ export default function useProfileFields({ | |
id: 'use_profile_fields.label.first_name' | ||
}), | ||
type: 'text', | ||
autoComplete: 'given-name', | ||
defaultValue: '', | ||
rules: { | ||
required: formatMessage({ | ||
|
@@ -42,6 +43,7 @@ export default function useProfileFields({ | |
}), | ||
type: 'text', | ||
defaultValue: '', | ||
autoComplete: 'family-name', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter your last name.', | ||
|
@@ -57,6 +59,7 @@ export default function useProfileFields({ | |
placeholder: '[email protected]', | ||
type: 'email', | ||
defaultValue: '', | ||
autoComplete: 'email', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter a valid email address.', | ||
|
@@ -74,6 +77,7 @@ export default function useProfileFields({ | |
}), | ||
defaultValue: '', | ||
type: 'tel', | ||
autoComplete: 'tel', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter your phone number.', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ export default function useRegistrationFields({ | |
id: 'use_registration_fields.label.first_name' | ||
}), | ||
type: 'text', | ||
autoComplete: 'given-name', | ||
defaultValue: '', | ||
rules: { | ||
required: formatMessage({ | ||
|
@@ -42,6 +43,7 @@ export default function useRegistrationFields({ | |
}), | ||
type: 'text', | ||
defaultValue: '', | ||
autoComplete: 'family-name', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter your last name.', | ||
|
@@ -59,6 +61,7 @@ export default function useRegistrationFields({ | |
}), | ||
placeholder: '[email protected]', | ||
type: 'email', | ||
autoComplete: 'email', | ||
defaultValue: '', | ||
rules: { | ||
required: formatMessage({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ export default function useResetPasswordFields({ | |
placeholder: '[email protected]', | ||
defaultValue: '', | ||
type: 'email', | ||
autoComplete: 'email', | ||
rules: { | ||
required: formatMessage({ | ||
defaultMessage: 'Please enter a valid email address.', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters