Redux-form-material-ui: <Radio> does not show the value

Created on 29 Nov 2017  路  1Comment  路  Source: erikras/redux-form-material-ui

Hi, I am still new to the wrapper. I am using the latest beta versions of both redux-form-material-ui and material-ui. The following only shows two radio buttons and they work well, just wondering why it does not show the two words ('male' and 'female') show...

<Field` name="gender" component={RadioGroup}> <Radio value='male' label="male" /> <Radio value='female' label="female" /> </Field>

screen shot 2017-11-29 at 1 47 35 pm

Most helpful comment

<Field` name="sex"   component={RadioGroup}>
          <FormControlLabel value="male" control={<Radio />} label="male" />
          <FormControlLabel value="female" control={<Radio />} label="female" />
</Field>

Finally had to use this alternative.....

>All comments

<Field` name="sex"   component={RadioGroup}>
          <FormControlLabel value="male" control={<Radio />} label="male" />
          <FormControlLabel value="female" control={<Radio />} label="female" />
</Field>

Finally had to use this alternative.....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

klane11 picture klane11  路  7Comments

dealvz picture dealvz  路  4Comments

rspicer picture rspicer  路  7Comments

EssamTarik picture EssamTarik  路  3Comments

eL-HaXo picture eL-HaXo  路  5Comments