Skip to content

Commit 133f412

Browse files
authored
excludeScrollbar prop for react-onclickoutside (Hacker0x01#2032)
1 parent 9138873 commit 133f412

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docs/datepicker.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ General datepicker component.
2323
| `endDate` | `instanceOf(Date)` | | |
2424
| `excludeDates` | `array` | | |
2525
| `excludeTimes` | `array` | | |
26+
| `excludeScrollbar` | `array` | | |
2627
| `filterDate` | `func` | | |
2728
| `fixedHeight` | `bool` | | |
2829
| `forceShowMonthNavigation` | `bool` | | |

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
| `endDate` | `instanceOfDate` | | |
2323
| `excludeDates` | `array` | | |
2424
| `excludeTimes` | `array` | | |
25+
| `excludeScrollbar` | `array` | | |
2526
| `filterDate` | `func` | | |
2627
| `fixedHeight` | `bool` | | |
2728
| `forceShowMonthNavigation` | `bool` | | |

src/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export default class DatePicker extends React.Component {
105105
},
106106
inlineFocusSelectedMonth: false,
107107
showPopperArrow: true,
108+
excludeScrollbar: true,
108109
customTimeInput: null
109110
};
110111
}
@@ -226,6 +227,7 @@ export default class DatePicker extends React.Component {
226227
onDayMouseEnter: PropTypes.func,
227228
onMonthMouseLeave: PropTypes.func,
228229
showPopperArrow: PropTypes.bool,
230+
excludeScrollbar: PropTypes.bool,
229231
enableTabLoop: PropTypes.bool,
230232
customTimeInput: PropTypes.element
231233
};
@@ -782,6 +784,7 @@ export default class DatePicker extends React.Component {
782784
showMonthYearPicker={this.props.showMonthYearPicker}
783785
showQuarterYearPicker={this.props.showQuarterYearPicker}
784786
showPopperArrow={this.props.showPopperArrow}
787+
excludeScrollbar={this.props.excludeScrollbar}
785788
handleOnKeyDown={this.onDayKeyDown}
786789
isInputFocused={this.state.focused}
787790
customTimeInput={this.props.customTimeInput}

0 commit comments

Comments
 (0)