Skip to content

Commit

Permalink
fix(DatePicker): RangePicker select year error
Browse files Browse the repository at this point in the history
  • Loading branch information
jinli.lyy committed Jul 16, 2019
1 parent 0024a63 commit e32cbbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/calendar/range-calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,12 @@ class RangeCalendar extends React.Component {
}

onSelectCell = (date, nextMode) => {
// this.changeVisibleMonth(date, 'cellClick');

if (this.state.mode === CALENDAR_MODE_DATE) {
this.props.onSelect(date);
} else {
this.changeVisibleMonth(date, 'cellClick');
}

this.changeMode(nextMode);
};

Expand Down

0 comments on commit e32cbbe

Please sign in to comment.