-
Notifications
You must be signed in to change notification settings - Fork 226
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
v3 passes through bogus props to <input>, causing React to warn #12
Comments
We will see what Material UI |
I'm still getting some unexpected props with |
AFAICT, the Material-UI folks think that this is resolved in 15.2. See the release notes, mui/material-ui#4594, and pull requests 4603,4605,4607. |
don't worry, they know it's not. |
The issues @oallouch referred to do not describe this particular problem, so I opened a new issue on material-ui: mui/material-ui#4722 |
The material-ui guys closed out mui/material-ui#4722 , pointing out that the properties being placed in aren't from them - which is of course true; they're redux-form properties. I'm guessing that this might actually be a redux-form bug - a corner case that the fixes for React 15.2 don't address. @aldendaniels doesn't say what version of redux-form that he's on, but I'm seeing it with |
I seem to be only getting this with the ReduxFormMaterialUITextField component, all the other ones seem fine. |
The following src/TextField.js patch seems to work for me, but I'm very inexperienced in this area and might easily be breaking the behavior of some flag or other - hence no patch request.
|
I'm getting the warning when using import { SelectField } from 'redux-form-material-ui';
import { Field } from 'redux-form/immutable'
<Field component={SelectField} name="test1" floatingLabelText="Test">
<MenuItem value={1} primaryText={'1'} />
<MenuItem value={2} primaryText={'2'} />
</Field> Results in:
Using versions: "react": "15.2.1",
"redux-form": "6.0.0-rc.3",
"redux-form-material-ui": "3.0.0", |
@adamtal3 For SelectField, I'm using:
|
@estaub Thanks, your solution to both the |
hi guys, doing a |
@tzapu What version of redux-form are you using? |
@estaub hi, "redux-form": "^6.0.0-rc.4", |
I can confirm the warnings are gone for me. Here's the versions I use:
Thanks for the hard work guys 👍 |
Ditto, works for me, fixes Checkbox, SelectField, TextField, Toggle. |
Ok, closing this, then. |
The new version fixes #10, but caused react to start warning of unexpected props passed to
<input>
:This is because material-ui passes through unexpected props to the underlying
<input>
element. I think the fix is to black-list non-standard props from being passed through to material UI:active
asyncValidating
dirty
invalid
pristine
valid
visited
The text was updated successfully, but these errors were encountered: