Skip to content

Commit e5d78ab

Browse files
committed
fix(pagination): do not generate the URL for disabled pages.
Fix #282
1 parent 6c59708 commit e5d78ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/Pagination/Pagination.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Pagination extends React.Component {
2929
className = cx(bem('item-page', 'active'), this.props.cssClasses.active, className);
3030
}
3131

32-
var url = createURL ? createURL(pageNumber) : '#';
32+
var url = createURL && !isDisabled ? createURL(pageNumber) : '#';
3333

3434
return (
3535
<PaginationLink

0 commit comments

Comments
 (0)