Skip to content

Commit

Permalink
Merge b8d0fb8 into 2a209bd
Browse files Browse the repository at this point in the history
  • Loading branch information
iabduul7 committed Oct 8, 2020
2 parents 2a209bd + b8d0fb8 commit 3947dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datepicker.js
Expand Up @@ -50,7 +50,7 @@ class DatePicker extends Component {
this.setModalVisible = this.setModalVisible.bind(this);
}

componentWillReceiveProps(nextProps) {
componentDidUpdate(nextProps) {
if (nextProps.date !== this.props.date) {
this.setState({date: this.getDate(nextProps.date)});
}
Expand Down

0 comments on commit 3947dd8

Please sign in to comment.