We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 801c029 commit f0ec267Copy full SHA for f0ec267
src/calendar.jsx
@@ -693,10 +693,9 @@ export default class Calendar extends React.Component {
693
694
handleTodayButtonClick = (e) => {
695
this.props.onSelect(getStartOfToday(), e);
696
- this.props.setPreSelection(getStartOfToday());
+ this.props.setPreSelection && this.props.setPreSelection(getStartOfToday());
697
};
698
699
-
700
renderTodayButton = () => {
701
if (!this.props.todayButton || this.props.showTimeSelectOnly) {
702
return;
0 commit comments