Skip to content

Commit 185de16

Browse files
Keven Maxljharb
authored andcommitted
[Docs] examples: DateRangePickerWrapper/SingleDatePickerWrapper: Add open direction as default props
1 parent 42e5996 commit 185de16

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

examples/DateRangePickerWrapper.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
HORIZONTAL_ORIENTATION,
1515
ANCHOR_LEFT,
1616
NAV_POSITION_TOP,
17+
OPEN_DOWN,
1718
} from '../src/constants';
1819
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
1920

@@ -70,6 +71,7 @@ const defaultProps = {
7071
keepOpenOnDateSelect: false,
7172
reopenPickerOnClearDates: false,
7273
isRTL: false,
74+
openDirection: OPEN_DOWN,
7375

7476
// navigation related props
7577
navPosition: NAV_POSITION_TOP,

examples/SingleDatePickerWrapper.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import SingleDatePicker from '../src/components/SingleDatePicker';
88

99
import { SingleDatePickerPhrases } from '../src/defaultPhrases';
1010
import SingleDatePickerShape from '../src/shapes/SingleDatePickerShape';
11-
import { HORIZONTAL_ORIENTATION, ANCHOR_LEFT } from '../src/constants';
11+
import { HORIZONTAL_ORIENTATION, ANCHOR_LEFT, OPEN_DOWN } from '../src/constants';
1212
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
1313

1414
const propTypes = {
@@ -56,6 +56,7 @@ const defaultProps = {
5656
keepOpenOnDateSelect: false,
5757
reopenPickerOnClearDate: false,
5858
isRTL: false,
59+
openDirection: OPEN_DOWN,
5960

6061
// navigation related props
6162
navPrev: null,

0 commit comments

Comments
 (0)