summaryrefslogtreecommitdiffhomepage
path: root/app/components/CustomScrollbars.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/components/CustomScrollbars.js')
-rw-r--r--app/components/CustomScrollbars.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/components/CustomScrollbars.js b/app/components/CustomScrollbars.js
index d2f89d5e15..69381f60cd 100644
--- a/app/components/CustomScrollbars.js
+++ b/app/components/CustomScrollbars.js
@@ -53,10 +53,11 @@ export default class CustomScrollbars extends Component {
}
render() {
+ const { autoHide: _autoHide, thumbInset: _thumbInset, children, ...otherProps } = this.props;
const showScrollbars = this.state.canScroll && this.state.showScrollIndicators;
const thumbAnimationClass = showScrollbars ? ' custom-scrollbars__thumb--visible' : '';
return (
- <div className="custom-scrollbars">
+ <div {...otherProps } className="custom-scrollbars">
<div className={ `custom-scrollbars__thumb ${thumbAnimationClass}` }
style={{ position: 'absolute', top: 0, right: 0 }}
ref={ this._onThumbRef }></div>
@@ -64,7 +65,7 @@ export default class CustomScrollbars extends Component {
style={{ overflow: 'auto' }}
onScroll={ this._onScroll }
ref={ this._onScrollableRef }>
- { this.props.children }
+ { children }
</div>
</div>
);