Closed TeyimPila closed 4 years ago
@TeyimPila - In all honesty- I haven't had time to maintain this lib, and there are better "pure react" date pickers out there- so I might try a different date picker lib.
With that said, there's probably a way to use redux-form's action creators to update the redux form state:
So in your handleEvent()
code for the date picker, doing something like:
handleEvent(event, picker) {
dispatch(change('my-redux-form', 'startDate', picker.startDate));
dispatch(change('my-redux-form', 'endDate', picker.endDate));
}
That's probably an anti-pattern, and not the best way to use redux-form, but I have written user-scripts that do similar things when I want to "auto-fill" a redux-form.
closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater
Hello, I am trying to make use of this library with redux form but when I select a date, the value is not submitted at part of the form fields. Is there any guide that I can use to implement this with redux form, please. Here is my attempt...