felixakiragreen / react-kronos

A fast, intuitive, and elegant date and time picker for React.
https://felixakiragreen.github.io/react-kronos/
MIT License
90 stars 28 forks source link

Default start time #59

Open schuchowsky opened 7 years ago

schuchowsky commented 7 years ago

I've been using react-kronos and it's working really well on my project.

But I've just got a request from my client, to make all time inputs start by default at 8am.

Is there an option for it, or could be something easy to implement?

Thanks and regards.

felixakiragreen commented 7 years ago

I would set the time to 8am when you initialize the component.

schuchowsky commented 7 years ago

You mean the value I pass to it? I couldn't because I need to validate if the field wasn't informed.

What I thought was an option to set the default time when opening the dropdown, but still with it's value empty.

AppliKey commented 7 years ago

I need to set default time too :(