Skip to content

Commit ee3d7d3

Browse files
committed
🐛 (pagination)-minor bug fix on pagination dots
#262
1 parent 8834f08 commit ee3d7d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pagination/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ class Pagination extends Component {
7979
>
8080
{1}
8181
</div>,
82-
total > 5 && currentActive > 2 ? this.renderDots('left') : null,
82+
total > 5 && currentActive > 3 ? this.renderDots('left') : null,
8383
total >= 3 && steps,
84-
total > 5 && currentActive < total - 1 ? this.renderDots('right') : null,
84+
total > 5 && currentActive < total - 2 ? this.renderDots('right') : null,
8585
total >= 2 && (
8686
<div
8787
className={classnames(theme['pagination-steps'], {

0 commit comments

Comments
 (0)