formsy-material-ui
formsy-material-ui copied to clipboard
formsy select is not working properly. i couldnt see the drop down
import React from 'react' import Formsy from 'formsy-react' import getMuiTheme from 'material-ui/styles/getMuiTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import Paper from 'material-ui/Paper' import RaisedButton from 'material-ui/RaisedButton' import MenuItem from 'material-ui/MenuItem' import { FormsyCheckbox, FormsyDate, FormsyRadio, FormsyRadioGroup, FormsySelect, FormsyText, FormsyTime, FormsyToggle } from 'formsy-material-ui/lib'
<FormsySelect name="frequency" required floatingLabelText="How often do you?" menuItems={this.selectFieldItems}> <MenuItem value={'never'} primaryText="Never" /> <MenuItem value={'nightly'} primaryText="Every Night" /> <MenuItem value={'weeknights'} primaryText="Weeknights" /> </FormsySelect>
selectFieldItems seems to not be implemented in the example, i think you would need to populate it with your own menuItems.
Yes, it looks like the menuItems prop was deprecated. See https://github.com/mbrookes/formsy-material-ui/issues/40
@srinivaasang1 were you able to solve your issue or do we need to look at this as a potential bug still?
Update?
Putting this at the top of my file (after install) solved it
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();