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

inputProps={{value: this.props.value}} :( #179

Open
export-mike opened this issue Apr 8, 2016 · 5 comments
Open

inputProps={{value: this.props.value}} :( #179

export-mike opened this issue Apr 8, 2016 · 5 comments

Comments

@export-mike
Copy link
Contributor

Doesn't update text field as its only read on getInitialState,
just want to clear my input after submitting a form. I'll keep this here I may contribute next week with a PR. but if you have any quick wins let me know!

@export-mike
Copy link
Contributor Author

intermediate solution to get the job done use refs and call this.refs.field.setState({ entryValue: ' ' });

@nikhilaravi
Copy link

@export-mike I'm having the same problem! I've used your temp solution for now and it works!

@export-mike
Copy link
Contributor Author

@nikhilaravi can you try out, this beta version we're currently working on: npm i [email protected]

@zalbiraw
Copy link

I am running into this problem as well, and I have tried it with alpha 1 and 2

@export-mike
Copy link
Contributor Author

you'll have to call refs on this, to have more control. It's not ideal.

Feel free to PR value props mapping to the value of the field, it's all tangled with state at the moment, this code can be simplified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants