Skip to content

Commit

Permalink
fix(pagination): do not generate the URL for disabled pages.
Browse files Browse the repository at this point in the history
Fix #282
  • Loading branch information
redox committed Oct 19, 2015
1 parent 6c59708 commit e5d78ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Pagination extends React.Component {
className = cx(bem('item-page', 'active'), this.props.cssClasses.active, className);
}

var url = createURL ? createURL(pageNumber) : '#';
var url = createURL && !isDisabled ? createURL(pageNumber) : '#';

return (
<PaginationLink
Expand Down

0 comments on commit e5d78ab

Please sign in to comment.