Skip to content

Commit fd68109

Browse files
authoredApr 15, 2022
Merge pull request #7552 from afilp/patch-35
Also use isSubmitted in touched prop
2 parents dc42f0c + 88692b1 commit fd68109

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/ra-ui-materialui/src/input/BooleanInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const BooleanInput = (props: BooleanInputProps) => {
8888
/>
8989
<FormHelperText error={(isTouched || isSubmitted) && invalid}>
9090
<InputHelperText
91-
touched={isTouched}
91+
touched={isTouched || isSubmitted}
9292
error={error?.message}
9393
helperText={helperText}
9494
/>

0 commit comments

Comments
 (0)
Please sign in to comment.