Skip to content

Commit 888f650

Browse files
AlokTakshakljharb
authored andcommitted
[Docs] added initialVisibleMonth to DayPickerRangeController in ReadMe
Fixes #1619.
1 parent c20807f commit 888f650

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ Here is the minimum *REQUIRED* setup you need to get the `DayPickerRangeControll
296296
onDatesChange={({ startDate, endDate }) => this.setState({ startDate, endDate })} // PropTypes.func.isRequired,
297297
focusedInput={this.state.focusedInput} // PropTypes.oneOf([START_DATE, END_DATE]) or null,
298298
onFocusChange={focusedInput => this.setState({ focusedInput })} // PropTypes.func.isRequired,
299+
initialVisibleMonth={() => moment().add(2, "M")} // PropTypes.func or null,
299300
/>
300301
```
301302

0 commit comments

Comments
 (0)