Browse Source

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

closed-social-glitch-2
Henry Smith 7 years ago
committed by Eugen
parent
commit
1921c5416b
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      app/assets/javascripts/components/features/ui/components/column.jsx

+ 5
- 2
app/assets/javascripts/components/features/ui/components/column.jsx View File

@ -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 () {

Loading…
Cancel
Save