Skip to content

Commit

Permalink
fix: update time indicator position if max prop changes (jquense#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciyoshi authored and jquense committed Jul 5, 2019
1 parent b223a61 commit ac945b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DayColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit ac945b7

Please sign in to comment.