Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jljox committed May 3, 2018
1 parent 02cc4af commit a52735c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ export class Calendar extends Component {
}

componentWillReceiveProps(nextProps) {
if (nextProps.value !== this.props.value) {
if (nextProps.value !== this.props.value || nextProps.minDate !== this.props.minDate || nextProps.maxDate !== this.props.maxDate) {
let date = this.getMonthYearDate(nextProps.value);
let month = date.getMonth();
let year = date.getFullYear();
Expand Down

0 comments on commit a52735c

Please sign in to comment.