Skip to content

Commit

Permalink
Merge pull request #7552 from afilp/patch-35
Browse files Browse the repository at this point in the history
Also use isSubmitted in touched prop
  • Loading branch information
djhi committed Apr 15, 2022
2 parents dc42f0c + 88692b1 commit fd68109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/BooleanInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const BooleanInput = (props: BooleanInputProps) => {
/>
<FormHelperText error={(isTouched || isSubmitted) && invalid}>
<InputHelperText
touched={isTouched}
touched={isTouched || isSubmitted}
error={error?.message}
helperText={helperText}
/>
Expand Down

0 comments on commit fd68109

Please sign in to comment.