Skip to content

Commit 41b5756

Browse files
committed
Merge pull request glittershark#193 from davidblurton/patch-2
Missing event argument
2 parents 5f79260 + 18951bf commit 41b5756

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/reactable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ window.React["default"] = window.React;
839839
}
840840
}, {
841841
key: 'handleNext',
842-
value: function handleNext() {
842+
value: function handleNext(e) {
843843
e.preventDefault();
844844
this.props.onPageChange(this.props.currentPage + 1);
845845
}

lib/reactable/paginator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var Paginator = (function (_React$Component) {
3939
}
4040
}, {
4141
key: 'handleNext',
42-
value: function handleNext() {
42+
value: function handleNext(e) {
4343
e.preventDefault();
4444
this.props.onPageChange(this.props.currentPage + 1);
4545
}

src/reactable/paginator.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class Paginator extends React.Component {
1010
this.props.onPageChange(this.props.currentPage - 1)
1111
}
1212

13-
handleNext() {
13+
handleNext(e) {
1414
e.preventDefault()
1515
this.props.onPageChange(this.props.currentPage + 1);
1616
}

0 commit comments

Comments
 (0)