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

lolsob-rspec
Henry Smith 2017-04-11 21:58:28 +02:00 committed by Eugen
parent 25c5f86211
commit f2a3340fec
1 changed files with 5 additions and 2 deletions

View File

@ -41,8 +41,11 @@ const Column = React.createClass({
mixins: [PureRenderMixin], mixins: [PureRenderMixin],
handleHeaderClick () { handleHeaderClick () {
let node = ReactDOM.findDOMNode(this); const scrollable = ReactDOM.findDOMNode(this).querySelector('.scrollable');
this._interruptScrollAnimation = scrollTop(node.querySelector('.scrollable')); if (!scrollable) {
return;
}
this._interruptScrollAnimation = scrollTop(scrollable);
}, },
handleWheel () { handleWheel () {