These are chat archives for erikras/redux-form

14th
Jun 2016
VinhKQ
@vinhkq
Jun 14 2016 04:44

Hi everyone! I have little problem when using Redux-Form with React-Day-Picker, detail:

<DayPicker 
      {...due_date} 
      modifiers={{
        selected: day => DateUtils.isSameDay(moment.unix(due_date.value).toDate(), day)
      }} 
      initialMonth={ moment.unix(due_date.value).toDate() } 
      onDayClick={ this._handleDay.bind(this) }
/>

And function _handleDay is:

_handleDay(event, day) {
    let data= day.getTime()/1000
   // How can i transfer data to redux-form to submit it?
  }

How can i transfer data to redux-form props to submit it? Thanks in advance :D