React-redux-form: Select Component Doesn't Work

Created on 10 Jun 2016  路  6Comments  路  Source: davidkpiano/react-redux-form

I need help for custom component. Select component doesnt work with Field.

<Field model="user.city">
<label>{labelText}</label>
<Select ref="stateSelect" autofocus options={autosuggest} simpleValue clearable={true} name="selected-state" placeholder="Select City."  value={this.state.selectValue} onChange={this.updateValue} />
</Field>`

http://prntscr.com/beocfz

invalid question

Most helpful comment

Were you able to make the select component of material-ui work with react-redux-form ? Material-ui select seems too buggy :(

All 6 comments

Which custom Select component is this? Did you read the docs on Custom Components?

Sorry, i didn't see. Do you have custom component example ?

Thanks for help.

The Material-UI TextField example works well:

import { createFieldClass, controls } from 'react-redux-form';
import TextField from 'material-ui/lib/text-field';

const MaterialField = createFieldClass({
  'TextField': controls.text
}, {
  componentMap: {
    TextField: TextField
  }
});

// render():
<MaterialField model="...">
  <TextField />
</MaterialField>

Were you able to make the select component of material-ui work with react-redux-form ? Material-ui select seems too buggy :(

@davidkpiano TextField etc are working great. But it seems to have hard times with custom select & menuitem (option) controls.

@philippzentner can you share your current problematic code?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varzock picture varzock  路  3Comments

ndevvy picture ndevvy  路  3Comments

vladshcherbin picture vladshcherbin  路  5Comments

iBasit picture iBasit  路  4Comments

vkurlyan picture vkurlyan  路  3Comments