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: React does not recognize the pageSize prop on a DOM element. #41

Open
mbukh opened this issue Feb 22, 2023 · 0 comments
Open

Comments

@mbukh
Copy link

mbukh commented Feb 22, 2023

It seems like pageSize attribute is being transferred to ul DOM element without .toLowerCase()

In console:

Warning: React does not recognize the pageSize prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase pagesize instead. If you accidentally passed it from a parent component, remove it from the DOM element.
at ul
at Pagination (http://localhost:3000/static/js/bundle.js:51124:18)
at section
at RecordList (http://localhost:3000/static/js/bundle.js:453:5)
at div
at App (http://localhost:3000/static/js/bundle.js:37:86)

In React component:

            {allRecords.length > perPage && (
                <Pagination
                    current={page}
                    total={allRecords.length}
                    pageSize={perPage}
                    onChange={pageOnChangeHandler}
                />
            )}`
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

No branches or pull requests

1 participant