Skip to content

Commit

Permalink
fix: add name to fields
Browse files Browse the repository at this point in the history
fix: add name to fields
jordankoschei-okta authored Apr 27, 2023

Verified

This commit was signed with the committer’s verified signature.
fisx Matthias Fischmann
1 parent a06377b commit a891438
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/odyssey-react-mui/src/CheckboxGroup.tsx
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@ const CheckboxGroup = ({
component="fieldset"
disabled={isDisabled}
error={Boolean(errorMessage)}
name={name}
>
{label && <FormLabel component="legend">{label}</FormLabel>}
{hint && <FormHelperText id={`${name}-hint`}>{hint}</FormHelperText>}
1 change: 1 addition & 0 deletions packages/odyssey-react-mui/src/PasswordField.tsx
Original file line number Diff line number Diff line change
@@ -130,6 +130,7 @@ const PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(
</InputAdornment>
}
id={id}
name={id}
onChange={onChange}
onFocus={onFocus}
onBlur={onBlur}
1 change: 1 addition & 0 deletions packages/odyssey-react-mui/src/SearchField.tsx
Original file line number Diff line number Diff line change
@@ -92,6 +92,7 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
/* eslint-disable-next-line jsx-a11y/no-autofocus */
autoFocus={autoFocus}
id={id}
name={id}
onChange={onChange}
onFocus={onFocus}
onBlur={onBlur}
1 change: 1 addition & 0 deletions packages/odyssey-react-mui/src/TextField.tsx
Original file line number Diff line number Diff line change
@@ -139,6 +139,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
endAdornment={endAdornment}
id={id}
multiline={isMultiline}
name={id}
onBlur={onBlur}
onChange={onChange}
onFocus={onFocus}

0 comments on commit a891438

Please sign in to comment.