Skip to content

Commit

Permalink
Fixed #266 and #278
Browse files Browse the repository at this point in the history
  • Loading branch information
Merve7 committed Jan 9, 2018
1 parent 8e49027 commit 7fcfe91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export class Calendar extends Component {
else {
if(this.shouldSelectDate(dateMeta)) {
if(dateMeta.otherMonth) {
if(this.selectOtherMonths) {
if(this.props.selectOtherMonths) {
this.selectDate(event, dateMeta);
}
}
Expand Down Expand Up @@ -482,6 +482,7 @@ export class Calendar extends Component {
}
else {
m = month + 1;
y = year;
}

return {'month':m,'year':y};
Expand Down

0 comments on commit 7fcfe91

Please sign in to comment.