Skip to content

Commit 4ddc37f

Browse files
author
Holger Schauf
committed
fix bind this
1 parent 25399f4 commit 4ddc37f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-list-scroll-bound",
3-
"version": "15.0.5",
3+
"version": "15.0.6",
44
"description": "prevent body scrolling, if list border reached, to get a better experience",
55
"main": "dist/listScrollBound.js",
66
"repository": {

src/listScrollBound.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ListScrollBound extends Component {
2828
return (
2929
<this.props.tagName
3030
id={this.props.id}
31-
onWheel={this.preventBodyScrolling}
31+
onWheel={this.preventBodyScrolling.bind(this)}
3232
className={this.props.className}
3333
onClick={this.props.onClick.bind(this)}
3434
>

0 commit comments

Comments
 (0)