diff --git a/src/Calendar.js b/src/Calendar.js index d321572..9e131d7 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -131,9 +131,9 @@ export default class Calendar extends React.Component { })); if (isFutureDate) { - monthIterator.setMonth(monthIterator.getMonth() + 1); + monthIterator.setMonth(monthIterator.getMonth() + 1, 1); } else { - monthIterator.setMonth(monthIterator.getMonth() - 1); + monthIterator.setMonth(monthIterator.getMonth() - 1, 1); } }