Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing name prop to TextField #1759

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Conversation

jordankoschei-okta
Copy link
Contributor

Repurpose id as name in form fields.

@@ -130,6 +130,7 @@ const PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(
</InputAdornment>
}
id={id}
name={id}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should name always = id?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I think this is fine. If we find a use case where that doesn't make sense, we can optionally add a name prop as well and do id || name.

@jordankoschei-okta jordankoschei-okta merged commit a891438 into develop Apr 27, 2023
@jordankoschei-okta jordankoschei-okta deleted the jk/OKTA-604338 branch April 27, 2023 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants