Skip to content

Commit

Permalink
fix: remove param in scroll callback
Browse files Browse the repository at this point in the history
  • Loading branch information
wildergd committed Oct 13, 2020
1 parent 1fb2121 commit bc74e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Picklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Picklist extends Component {
return null;
}

handleWindowScroll(_, event) {
handleWindowScroll(event) {
if (this.dropdownRef.current.contains(event.target)) return;
this.closeMenu();
}
Expand Down
2 changes: 1 addition & 1 deletion src/libs/scrollController/windowScrolling.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class WindowScrolling {
[privateHandleScroll](event) {
if (!this.isTicking) {
window.requestAnimationFrame(() => {
this.callback(this, event);
this.callback(event);
this.isTicking = false;
});
this.isTicking = true;
Expand Down

0 comments on commit bc74e2c

Please sign in to comment.