Skip to content

Conversation

@jpedroribeiro
Copy link

@jpedroribeiro jpedroribeiro commented Aug 3, 2018

This fixes the issues #207, #167 by giving the user an option to have its pagination 0-indexed or 1-indexed.

Edit: adding issue

},
"jest": {
"verbose": true,
"testURL": "http://localhost/",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were failing. After looking into Jest repo/community, this is what the recommendation was.
This might also fix other PRs like #223

} = this.props;
if (hrefBuilder &&
pageIndex !== this.state.selected &&
pageIndex >= 0 &&

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be pageIndex >= (oneIndexed ? 1 : 0) as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants