Skip to content

Commit

Permalink
fix: update time indicator position if min prop changes (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp authored and jquense committed May 13, 2019
1 parent 2b7ad2a commit 97ea841
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DayColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class DayColumn extends React.Component {

this.setTimeIndicatorPositionUpdateInterval(tail)
}
} else if (
this.props.isNow &&
!dates.eq(prevProps.min, this.props.min, 'minutes')
) {
this.positionTimeIndicator()
}
}

Expand Down

0 comments on commit 97ea841

Please sign in to comment.