From 4f5e00a1e7bb6774faa5eee9281992b3ed858236 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 20 Mar 2020 02:41:31 +0300 Subject: [PATCH] Fixed #1277 - Calendar display not update when value change --- src/components/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/calendar/Calendar.js b/src/components/calendar/Calendar.js index 0e293fee84..53f0a6da13 100644 --- a/src/components/calendar/Calendar.js +++ b/src/components/calendar/Calendar.js @@ -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); } }