forked from treehouse/mastodon
Fix console error when scrolling a column with no scrollable content (#1574)
parent
fc47c1d00e
commit
1921c5416b
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue