Skip to content

Commit 0f55e05

Browse files
committed
Merge branch 'patch-1' of git://github.com/felixkiss/react-datatable into felixkiss-patch-1
2 parents 0d25f28 + f132079 commit 0f55e05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/ADPagination.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export default function ADPagination(props){
99
let Item = function(props) {
1010
let className = (props.className) || "";
1111
return(<li className={"page-item " + className}>
12-
<a href='javascript:void(0);' className="page-link" tabIndex="-1"
13-
onClick={props.onClick}>
12+
<a href='#' className="page-link" tabIndex="-1"
13+
onClick={(e) => { e.preventDefault(); props.onClick(e) }}>
1414
{props.children}
1515
</a>
1616
</li>);
@@ -71,4 +71,4 @@ export default function ADPagination(props){
7171
</Item>);
7272

7373
return tags;
74-
}
74+
}

0 commit comments

Comments
 (0)