Skip to content

Commit

Permalink
Merge pull request #4249 from marmelab/fix_red_validation
Browse files Browse the repository at this point in the history
fix red validation message for SelectArrayInput
  • Loading branch information
djhi authored Jan 6, 2020
2 parents 77beedc + 549c1eb commit 0c2e3cf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ra-ui-materialui/src/input/SelectArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,12 @@ const SelectArrayInput: FunctionComponent<
variant={variant}
{...sanitizeRestProps(rest)}
>
<InputLabel htmlFor={id} shrink variant={variant}>
<InputLabel
htmlFor={id}
shrink
variant={variant}
error={touched && !!error}
>
<FieldTitle
label={label}
source={source}
Expand Down Expand Up @@ -253,7 +258,7 @@ const SelectArrayInput: FunctionComponent<
{choices.map(renderMenuItem)}
</Select>
{(touched && error) || helperText ? (
<FormHelperText>
<FormHelperText error={touched && !!error}>
<InputHelperText
touched={touched}
error={error}
Expand Down

0 comments on commit 0c2e3cf

Please sign in to comment.