@@ -382,9 +382,10 @@ return /******/ (function(modules) { // webpackBootstrap
382
382
} ;
383
383
384
384
DateUtil . prototype . inRange = function ( startDate , endDate ) {
385
- var startDate = startDate . _date . startOf ( "day" ) . subtract ( 1 , "seconds" ) ;
386
- var endDate = endDate . _date . startOf ( "day" ) . add ( 1 , "seconds" ) ;
387
- return this . _date . isBetween ( startDate , endDate ) ;
385
+ if ( ! startDate || ! endDate ) return false ;
386
+ var before = startDate . _date . startOf ( "day" ) . subtract ( 1 , "seconds" ) ;
387
+ var after = endDate . _date . startOf ( "day" ) . add ( 1 , "seconds" ) ;
388
+ return this . _date . isBetween ( before , after ) ;
388
389
} ;
389
390
390
391
DateUtil . prototype . day = function ( ) {
@@ -485,6 +486,8 @@ return /******/ (function(modules) { // webpackBootstrap
485
486
hideCalendar : React . PropTypes . func . isRequired ,
486
487
minDate : React . PropTypes . object ,
487
488
maxDate : React . PropTypes . object ,
489
+ startDate : React . PropTypes . object ,
490
+ endDate : React . PropTypes . object ,
488
491
excludeDates : React . PropTypes . array ,
489
492
weekStart : React . PropTypes . string . isRequired
490
493
} ,
0 commit comments