mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 126 forks source link

Use default time if user blurs after selecting date but not time in datetime mode? #78

Open RutledgePaulV opened 7 years ago

RutledgePaulV commented 7 years ago

Hi,

Thanks for a great calendar widget. I really appreciate the aesthetics and how few clicks I need to make in order to navigate to a date and time.

For background, while I personally don't mind a couple of clicks, sometimes I use this widget as part of a date filter range and my users would appreciate only having to select a date if they don't have a specific time in mind (and so they click out to blur the widget after having only selected a date).

In those cases, I'd want the actual time to default to the start of the day for the selected date (or more generally, some default time of my choosing) but by default it seems that instead no value gets set if they select a date and then blur before picking a time.

Is my desired behavior possible to implement myself using existing hooks or would you consider this a new feature? If it is possible / supported, could you point me towards an example or documentation? If not - would you be willing to support this feature? Thanks!