Skip to content
Snippets Groups Projects
Commit 1921c541 authored by Henry Smith's avatar Henry Smith Committed by Eugen
Browse files

Fix console error when scrolling a column with no scrollable content (#1574)

parent fc47c1d0
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,11 @@ const Column = React.createClass({
mixins: [PureRenderMixin],
handleHeaderClick () {
let node = ReactDOM.findDOMNode(this);
this._interruptScrollAnimation = scrollTop(node.querySelector('.scrollable'));
const scrollable = ReactDOM.findDOMNode(this).querySelector('.scrollable');
if (!scrollable) {
return;
}
this._interruptScrollAnimation = scrollTop(scrollable);
},
handleWheel () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment