Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ac73e9b

Browse files
fix #1279
1 parent a3f8cfc commit ac73e9b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎packages/react-bootstrap-table2-paginator/src/pagination-list-adapter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ const paginationListAdapter = WrappedComponent =>
1212
totalPages,
1313
pageButtonRenderer,
1414
onPageChange,
15-
disablePageTitle
15+
disablePageTitle,
16+
hidePageListOnlyOnePage
1617
} = this.props;
1718
const pages = this.calculatePageStatus(
1819
this.calculatePages(totalPages, lastPage),
1920
lastPage,
2021
disablePageTitle
2122
);
23+
if (totalPages === 1 && hidePageListOnlyOnePage) {
24+
return null;
25+
}
2226
return (
2327
<WrappedComponent
2428
pageButtonRenderer={ pageButtonRenderer }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /