[Glitch] Fix advanced UI column crashing in development
Port 1962e4743c3786b3694a802547271a6046da4c9a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
108e3e34b8
commit
3e25a5e792
@ -285,7 +285,7 @@ class ScrollableList extends PureComponent {
|
||||
if (this.props.bindToDocument) {
|
||||
document.removeEventListener('scroll', this.handleScroll);
|
||||
document.removeEventListener('wheel', this.handleWheel, listenerOptions);
|
||||
} else {
|
||||
} else if (this.node) {
|
||||
this.node.removeEventListener('scroll', this.handleScroll);
|
||||
this.node.removeEventListener('wheel', this.handleWheel, listenerOptions);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user