Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination: Functions work for pageItem, etc. props, but warning is raised for invalid prop #3181

Closed
rintaun opened this issue Sep 30, 2018 · 2 comments
Labels

Comments

@rintaun
Copy link

rintaun commented Sep 30, 2018

Bug Report

Steps

return <Pagination pageItem={someFunction} />

Expected Result

Functionality-wise, I get exactly what I expected: the result of someFunction is displayed for page items; I do not expect any warnings.

Actual Result

Despite working as expected, I also get a warning for an invalid prop, because the type for pageItem etc. do not include function.

Version

0.82.3

Testcase

https://codesandbox.io/s/0po3po6530

@welcome
Copy link

welcome bot commented Sep 30, 2018

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@layershifter
Copy link
Member

@rintaun Thank you, it's a valid bug 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants