Skip to content

Commit

Permalink
Fixed #1277 - Calendar display not update when value change
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 19, 2020
1 parent 8d592c1 commit 4f5e00a
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 @@ -248,7 +248,7 @@ export class Calendar extends Component {
this.updateFocus();
}

if (prevProps.value !== this.props.value && !this.viewStateChanged) {
if (prevProps.value !== this.props.value && (!this.viewStateChanged || !this.panel.offsetParent)) {
this.updateInputfield(this.props.value);
}
}
Expand Down

0 comments on commit 4f5e00a

Please sign in to comment.