-
Notifications
You must be signed in to change notification settings - Fork 150
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
[FormsySelect] "menuItems" property of "SelectField" and "DropDownMenu" has been deprecated #40
Comments
Yeah, thanks for opening the issue - I've been meaning to look at this. Material-UI is undergoing a lot of changes, and it's hard to keep up! Feel free to submit a PR if you're able to get to the bottom of it. |
I think it's still present in the example code: |
So, any update on this? A year or so has gone by, and still there is no clear-cut way on how to use formsy-material-ui's Select and whether |
@advance512 Was having a similar issue. Not sure about menuItems, but I get FormsySelect to work by including 'react-tap-event-plugin', as seen in example: https://github.com/mbrookes/formsy-material-ui/blob/master/examples/webpack-example/src/app/app.js |
I gave up and used redux-form-material-ui instead. |
If anything, I know this is not directly related to the issue but it may come in handy, while handling the constructor(){
super();
this.state = {
currentValues: [1,2];
}
}
handleChange = (event, index, value) => {
this.setState({currentValues: index});
}
render(){
return(
<FormsySelect
multiple={true}
onChange={this.handleChange}
value={this.state.values}
>
{itemsList}
</FormsySelect>
);
} |
I've some problems with the
FormsySelect
component. When I use the example code from your readme, i get the following deprecated warnings:When I use the example from the Select Field component, it doesn't work. I think the problem is the
onChange
property (#27).Example code:
Extract from
package.json
:Thanks for your help.
The text was updated successfully, but these errors were encountered: