diff --git a/src/BackgroundCells.js b/src/BackgroundCells.js index eed1ea7ce..8a6ecd043 100644 --- a/src/BackgroundCells.js +++ b/src/BackgroundCells.js @@ -1,6 +1,5 @@ +import React, { createRef } from 'react' import PropTypes from 'prop-types' -import React from 'react' -import { findDOMNode } from 'react-dom' import clsx from 'clsx' import { notify } from './utils/helpers' @@ -14,6 +13,7 @@ class BackgroundCells extends React.Component { this.state = { selecting: false, } + this.containerRef = createRef() } componentDidMount() { @@ -44,7 +44,7 @@ class BackgroundCells extends React.Component { let current = getNow() return ( -