diff --git a/src/TimeGrid.js b/src/TimeGrid.js index d0379cfef..4b96af890 100644 --- a/src/TimeGrid.js +++ b/src/TimeGrid.js @@ -24,6 +24,7 @@ export default class TimeGrid extends Component { this.scrollRef = React.createRef() this.contentRef = React.createRef() + this._scrollRatio = null } componentWillMount() { @@ -267,7 +268,7 @@ export default class TimeGrid extends Component { } applyScroll() { - if (this._scrollRatio) { + if (this._scrollRatio != null) { const content = this.contentRef.current content.scrollTop = content.scrollHeight * this._scrollRatio // Only do this once