Skip to content

Commit

Permalink
fix: FieldWrapper… ID fallback support incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed May 20, 2024
1 parent ab31bf3 commit 98988c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const FormikCheck: React.FC<FormikInputProps> = ({
{...props}
type="checkbox"
checked={field.value}
id={id}
id={id || field.name}
/>
</FieldWrapper>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const FileInputDropZoneFormField: React.FC<FormikFileInputProps> = ({
formik={{ field, form, meta }}
>
<FileInputDropZone
id={id}
id={id || field.name}
files={field.value}
onDrop={onSetFiles}
onRemoveFile={onRemoveFile}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const FormikInput: React.FC<FormikInputProps> = ({
}: FormikInputProps) => {
return (
<FieldWrapper
id={id}
id={id || field.name}
label={label}
required={required}
description={description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FormikTextarea: React.FC<FormikSelectProps> = ({
}: FormikSelectProps) => {
return (
<FieldWrapper
id={id}
id={id || field.name}
label={label}
required={required}
description={description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const FormikTextarea: React.FC<FormikTextareaProps> = ({
}: FormikTextareaProps) => {
return (
<FieldWrapper
id={id}
id={id || field.name}
label={label}
required={required}
description={description}
Expand Down

0 comments on commit 98988c5

Please sign in to comment.