take into account possible startDate in props

This commit is contained in:
Sergio Crisostomo 2018-05-21 08:26:28 +02:00
parent 939a162ad7
commit 9a7a0e7557

View file

@ -221,7 +221,7 @@
selectionMode: this.onSelectionModeChange(this.type),
forceInputRerender: 1,
isFocused: false,
focusedDate: initialValue[0] || new Date(),
focusedDate: initialValue[0] || this.startDate || new Date(),
focusedTime: {
column: 0, // which column inside the picker
picker: 0, // which picker