We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I upgraded to 3.5.0 and now a React warning stating Each child in an array or iterator should have a unique "key" prop. Check the render method of PaginationList` now appears when there's only one page to show. I traced the problem to here (https://github.com/AllenFang/react-bootstrap-table/blob/master/src/pagination/PaginationList.js#L123):
3.5.0
Each child in an array or iterator should have a unique "key" prop. Check the render method of
return ( <div className='row' style={ { marginTop: 15 } }> { content || [ ( <div className='col-md-6 col-xs-6 col-sm-6 col-lg-6'> { total }{ sizePerPageList.length > 1 ? dropdown : null } </div> ), ( <div style={ { display: hidePageList } } className='col-md-6 col-xs-6 col-sm-6 col-lg-6'> { pageBtns } </div> ) ] } </div> );
When content is undefined, the div elements in the array are rendered. Since it's an array, each div element has to have a key.
content
undefined
div
key
The text was updated successfully, but these errors were encountered:
Same error here on 3.5.0, but I get that error even with multiple pages.
Sorry, something went wrong.
I'll fix it ASAP,, thanks
20284d2
Fixed on v3.5.1.
v3.5.1
PaginationList
No branches or pull requests
I upgraded to
3.5.0
and now a React warning statingEach child in an array or iterator should have a unique "key" prop. Check the render method of
PaginationList` now appears when there's only one page to show. I traced the problem to here (https://github.com/AllenFang/react-bootstrap-table/blob/master/src/pagination/PaginationList.js#L123):When
content
isundefined
, thediv
elements in the array are rendered. Since it's an array, eachdiv
element has to have akey
.The text was updated successfully, but these errors were encountered: