@@ -246,10 +246,10 @@ export default class DatePicker extends React.Component {
246
246
this . props . openToDate
247
247
? this . props . openToDate
248
248
: this . props . selectsEnd && this . props . startDate
249
- ? this . props . startDate
250
- : this . props . selectsStart && this . props . endDate
251
- ? this . props . endDate
252
- : newDate ( ) ;
249
+ ? this . props . startDate
250
+ : this . props . selectsStart && this . props . endDate
251
+ ? this . props . endDate
252
+ : newDate ( ) ;
253
253
254
254
calcInitialState = ( ) => {
255
255
const defaultPreSelection = this . getPreSelection ( ) ;
@@ -259,8 +259,8 @@ export default class DatePicker extends React.Component {
259
259
minDate && isBefore ( defaultPreSelection , minDate )
260
260
? minDate
261
261
: maxDate && isAfter ( defaultPreSelection , maxDate )
262
- ? maxDate
263
- : defaultPreSelection ;
262
+ ? maxDate
263
+ : defaultPreSelection ;
264
264
return {
265
265
open : this . props . startOpen || false ,
266
266
preventFocus : false ,
@@ -703,8 +703,8 @@ export default class DatePicker extends React.Component {
703
703
typeof this . props . value === "string"
704
704
? this . props . value
705
705
: typeof this . state . inputValue === "string"
706
- ? this . state . inputValue
707
- : safeDateFormat ( this . props . selected , this . props ) ;
706
+ ? this . state . inputValue
707
+ : safeDateFormat ( this . props . selected , this . props ) ;
708
708
709
709
return React . cloneElement ( customInput , {
710
710
[ customInputRef ] : input => {
@@ -722,7 +722,7 @@ export default class DatePicker extends React.Component {
722
722
placeholder : this . props . placeholderText ,
723
723
disabled : this . props . disabled ,
724
724
autoComplete : this . props . autoComplete ,
725
- className : className ,
725
+ className : customInput . props . className + " " + className ,
726
726
title : this . props . title ,
727
727
readOnly : this . props . readOnly ,
728
728
required : this . props . required ,
0 commit comments