Skip to content

Commit ac945b7

Browse files
sciyoshijquense
authored andcommitted
fix: update time indicator position if max prop changes (jquense#1379)
1 parent b223a61 commit ac945b7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DayColumn.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class DayColumn extends React.Component {
6363
}
6464
} else if (
6565
this.props.isNow &&
66-
!dates.eq(prevProps.min, this.props.min, 'minutes')
66+
(!dates.eq(prevProps.min, this.props.min, 'minutes') ||
67+
!dates.eq(prevProps.max, this.props.max, 'minutes'))
6768
) {
6869
this.positionTimeIndicator()
6970
}

0 commit comments

Comments
 (0)