diff --git a/packages/react/src/components/DatePicker/DatePicker.js b/packages/react/src/components/DatePicker/DatePicker.js index e6143ab2bb10..ca800fdf8552 100644 --- a/packages/react/src/components/DatePicker/DatePicker.js +++ b/packages/react/src/components/DatePicker/DatePicker.js @@ -383,10 +383,22 @@ export default class DatePicker extends Component { } } - componentDidUpdate({ dateFormat: prevDateFormat }) { - const { dateFormat } = this.props; - if (this.cal && prevDateFormat !== dateFormat) { - this.cal.set({ dateFormat }); + componentDidUpdate({ + dateFormat: prevDateFormat, + minDate: prevMinDate, + maxDate: prevMaxDate, + }) { + const { dateFormat, minDate, maxDate } = this.props; + if (this.cal) { + if (prevDateFormat !== dateFormat) { + this.cal.set({ dateFormat }); + } + if (prevMinDate !== minDate) { + this.cal.set('minDate', minDate); + } + if (prevMaxDate !== maxDate) { + this.cal.set('maxDate', maxDate); + } } }