We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe864d commit 7cea96fCopy full SHA for 7cea96f
1 file changed
packages/ra-ui-materialui/src/input/ArrayInput/ArrayInput.tsx
@@ -148,6 +148,8 @@ export const ArrayInput = (props: ArrayInputProps) => {
148
</Labeled>
149
);
150
}
151
+ const renderHelperText =
152
+ helperText !== false || ((isDirty || isSubmitted) && !!error);
153
154
return (
155
<Root
@@ -186,7 +188,7 @@ export const ArrayInput = (props: ArrayInputProps) => {
186
188
disabled,
187
189
})}
190
</ArrayInputContext.Provider>
- {!!((isDirty || isSubmitted) && !!error) || helperText ? (
191
+ {renderHelperText ? (
192
<FormHelperText error={(isDirty || isSubmitted) && !!error}>
193
<InputHelperText
194
touched={isDirty || isSubmitted}
0 commit comments