mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 01:11:37 +01:00
Fix console error when scrolling a column with no scrollable content (#1574)
This commit is contained in:
parent
fc47c1d00e
commit
1921c5416b
1 changed files with 5 additions and 2 deletions
|
@ -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…
Reference in a new issue