Skip to content

Commit 97ea841

Browse files
sonnypjquense
authored andcommitted
fix: update time indicator position if min prop changes (jquense#1311)
1 parent 2b7ad2a commit 97ea841

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/DayColumn.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ class DayColumn extends React.Component {
6161

6262
this.setTimeIndicatorPositionUpdateInterval(tail)
6363
}
64+
} else if (
65+
this.props.isNow &&
66+
!dates.eq(prevProps.min, this.props.min, 'minutes')
67+
) {
68+
this.positionTimeIndicator()
6469
}
6570
}
6671

0 commit comments

Comments
 (0)