From d9dace1f554b1317e19e02642ed8d1d5572fee43 Mon Sep 17 00:00:00 2001 From: Hiren Thacker Date: Wed, 12 Jun 2019 16:44:13 +0530 Subject: [PATCH] Fix helperText not showing validation error Fix helperText not showing validation error. Fixing the code to follow the same patten as SelectInput and AutocompleteInput. --- packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js b/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js index 53fbfda7552..0db3009ef60 100644 --- a/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js +++ b/packages/ra-ui-materialui/src/input/AutocompleteArrayInput.js @@ -260,8 +260,8 @@ export class AutocompleteArrayInput extends React.Component { onDelete={this.handleDelete} value={this.getInputValue(input.value)} inputRef={storeInputRef} - error={touched && error} - helperText={touched && error && helperText} + error={!!(touched && error)} + helperText={(touched && error) || helperText} chipRenderer={this.renderChip} label={