Skip to content

Pagination: React does not recognize the pageSize prop on a DOM element. #41

@mbukh

Description

@mbukh

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}
                />
            )}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions