Skip to content

Commit

Permalink
Also use isSubmitted in touched prop
Browse files Browse the repository at this point in the history
  • Loading branch information
afilp authored Apr 14, 2022
1 parent dc42f0c commit 2f398fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const NullableBooleanInput = (props: NullableBooleanInputProps) => {
error={(isTouched || isSubmitted) && invalid}
helperText={
<InputHelperText
touched={isTouched}
touched={isTouched || isSubmitted}
error={error?.message}
helperText={helperText}
/>
Expand Down

0 comments on commit 2f398fe

Please sign in to comment.