Skip to content

Commit

Permalink
Fix minDate & maxDate prop change detection (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
peacechen committed Mar 8, 2021
1 parent 159c796 commit 0bea64c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CalendarPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default class CalendarPicker extends Component {
) {
minMaxDates.minDate = this.props.minDate && moment(this.props.minDate);
minMaxDates.maxDate = this.props.maxDate && moment(this.props.maxDate);
doStateUpdate = true;
}

if (prevProps.customDatesStyles !== this.props.customDatesStyles) {
Expand Down

0 comments on commit 0bea64c

Please sign in to comment.