felixakiragreen / react-kronos

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

preventClickOnDateTimeOutsideRange does not prevent clicks on today #61

Open nicoletibaldi opened 7 years ago

nicoletibaldi commented 7 years ago

When a minimum date is set, and preventClickOnDateTimeOutsideRange is set to true, the date picker prevents clicks on all dates in the specified range except today.

ex:

  <Kronos
    date={moment().add(2, 'week')}
    onChangeDateTime={onChangeHandler}
    min={moment().add(1, 'week')}
    preventClickOnDateTimeOutsideRange
  />

screen_shot_2017-08-11_at_3 48 14_pm_360