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

DefaultValue not being set on TextField #118

Closed
sogoiii opened this issue Mar 25, 2017 · 4 comments
Closed

DefaultValue not being set on TextField #118

sogoiii opened this issue Mar 25, 2017 · 4 comments

Comments

@sogoiii
Copy link
Contributor

sogoiii commented Mar 25, 2017

If you define a defaultValue for a text field, it does not get shown.

Expected:
Set defaultValue=5, and have component render 5

Current:
Set defaultValue=5, and the component renders empty

example:

<Field name='myInput'
   type='number'
   defaultValue='4'
   component={TextField}
   floatingLabelText='Please Enter A value'
 />
@erikras
Copy link
Owner

erikras commented Mar 31, 2017

Fix published in v4.1.3.

@erikras erikras closed this as completed Mar 31, 2017
@eranhirs
Copy link

eranhirs commented Apr 1, 2018

Copy pasting the same example @sogoiii has provided, the component renders empty when using v5.0.0-beta-2

@emiliowl
Copy link

Same problem here with version v6.5.0.

@NguyenTheSon
Copy link

Same problem here with version v7.4.2

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

5 participants