Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayInput with SelectInput error message not styled. #2492

Closed
agmcleod opened this issue Nov 1, 2018 · 0 comments
Closed

ArrayInput with SelectInput error message not styled. #2492

agmcleod opened this issue Nov 1, 2018 · 0 comments
Assignees
Labels

Comments

@agmcleod
Copy link

agmcleod commented Nov 1, 2018

Very similar to this one here: #2270, just using SelectInput instead of SelectArrayInput. I upgraded from 2.1.x to 2.4.1

What you were expecting:
For the error message to be in red and look similar to other fields. Instead it is black and looks unstyled. The banner field is correct, the name is not.

image

Related code:

const isRequired = required();
const supportedLocales = [{id:'en-CA', name:'en-CA'}, {id:'fr-CA', name:'fr-CA'}];

<ArrayInput source='name' validate={isRequired}>
  <SimpleFormIterator>
    <SelectInput source='locale' choices={supportedLocales} />
    <TextInput source='text' />
  </SimpleFormIterator>
</ArrayInput>

We then transform it from an object of keys into an array

Environment

  • React-admin version: 2.4.1
  • React version: 16.4.1
  • Browser: Firefox, Chrome
@fzaninotto fzaninotto added the bug label Dec 12, 2018
@fzaninotto fzaninotto self-assigned this Dec 12, 2018
fzaninotto added a commit that referenced this issue Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants