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

Doesn't select previously chosen date on load #87

Open
stocks09 opened this issue Dec 24, 2017 · 0 comments
Open

Doesn't select previously chosen date on load #87

stocks09 opened this issue Dec 24, 2017 · 0 comments

Comments

@stocks09
Copy link

Hi,
When my input-moment calendar loads saved data to show previously selected date, it always selects the current date and not what I saved before.

In my FormComponent:

<Field
               name="starts"
               value={eventStarts} 
               component={DateTimePicker}   
               withRef
             />

In my DateTimePicker:

render() {
    return (
          <InputMoment
            moment={this.state.m}
            onChange={this.handleChange}
            minStep={5} 
          /> 
    );

NOTE: It properly saves data in the datastore so I know it works this part. The part that doesn't work is re-selecting the last chosen date.

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

1 participant