Skip to content
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

Updating TextField value shows warning in console. #4061

Closed
mb-copart opened this issue Apr 21, 2016 · 3 comments
Closed

Updating TextField value shows warning in console. #4061

mb-copart opened this issue Apr 21, 2016 · 3 comments
Labels
component: text field This is the name of the generic UI component, not the React module! v0.x

Comments

@mb-copart
Copy link

Problem Description

When I update the state of value of a TextField, I get this warning from React@15.0.1

Warning: TextField is changing a uncontrolled input of type text to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components.

Versions

"react": "^15.0.0",
"material-ui": "^0.15.0-beta.1",
"redux": "^3.3.1",
"react-redux": "^4.4.1"

Chrome: 49.0.2623.110 (64-bit)

@tintin1343
Copy link
Contributor

@mb-copart : Hi, Could you explain your use-case a bit more in detail. Its very difficult to debug based on the default warning message.

Please follow the https://github.com/callemall/material-ui/blob/master/CONTRIBUTING.md document for further guidelines.

@mb-copart
Copy link
Author

Sorry my bad, the initial value that was being sent to TextField was null, which was causing that warning to show up.

@nathanmarks
Copy link
Member

nathanmarks commented Apr 21, 2016

@tintin1343 this kind of issue can be closed IMO -- it's a user implementation issue not a material-ui issue and unfortunately we don't have the manpower to debug bugs that aren't material-ui related.

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 21, 2022
@zannager zannager added component: text field This is the name of the generic UI component, not the React module! v0.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! v0.x
Projects
None yet
Development

No branches or pull requests

5 participants