From ac945b70349a841b55b3413a9f101e20a062891b Mon Sep 17 00:00:00 2001 From: Samuel Cormier-Iijima Date: Fri, 5 Jul 2019 11:14:21 -0400 Subject: [PATCH] fix: update time indicator position if max prop changes (#1379) --- src/DayColumn.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DayColumn.js b/src/DayColumn.js index fb80bef7c..5b7b3c88f 100644 --- a/src/DayColumn.js +++ b/src/DayColumn.js @@ -63,7 +63,8 @@ class DayColumn extends React.Component { } } else if ( this.props.isNow && - !dates.eq(prevProps.min, this.props.min, 'minutes') + (!dates.eq(prevProps.min, this.props.min, 'minutes') || + !dates.eq(prevProps.max, this.props.max, 'minutes')) ) { this.positionTimeIndicator() }