Skip to content

Commit be53927

Browse files
fix renderDay() (#21)
1 parent c821928 commit be53927

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class DatetimeRangePicker extends Component {
150150
renderDay(props, currentDate) {
151151
const { start, end } = this.state;
152152
const { className, ...rest } = props;
153-
const date = moment(props.key, 'M_D');
153+
const date = currentDate;
154154

155155
// style all dates in range
156156
let classes = date.isBetween(start, end, 'day')

0 commit comments

Comments
 (0)