Skip to content

Commit c987d1c

Browse files
jordancardwellsimeg
authored andcommitted
check date.month() for current active month
1 parent 11612b6 commit c987d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MonthsView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var DateTimePickerMonths = onClickOutside( React.createClass({
5151
if ( isDisabled )
5252
classes += ' rdtDisabled';
5353

54-
if ( date && i === month && year === date.year() )
54+
if ( date && i === date.month() && year === date.year() )
5555
classes += ' rdtActive';
5656

5757
props = {

0 commit comments

Comments
 (0)