Redux-form-material-ui: can't seem to set a default value for the datepicker .

Created on 27 Sep 2016  路  1Comment  路  Source: erikras/redux-form-material-ui

I'm passing in values in this.props.initialize() function , the textfield displays it just fine. the values do show up in the form reducer just not in the datePicker field on the page.
Is it because DatePicker requires an object, and redux-form defaults to ''

Most helpful comment

Feel stupid :) was passing in a string not a date object. converted to a object through new Date()

>All comments

Feel stupid :) was passing in a string not a date object. converted to a object through new Date()

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bertdeterd picture bertdeterd  路  3Comments

aaj picture aaj  路  5Comments

ilyador picture ilyador  路  4Comments

VasilyShelkov picture VasilyShelkov  路  4Comments

jampy picture jampy  路  6Comments