Skip to content

Commit bf0108b

Browse files
committed
Update pagination.js
1 parent 4704ef8 commit bf0108b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mixins/pagination.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export default {
353353
const { keyCode, shiftKey } = evt
354354
/* istanbul ignore if */
355355
if (this.isNav) {
356-
// We disable left/right keyboard navigation in pagination-nav
356+
// We disable left/right keyboard navigation in <b-pagination-nav>
357357
return
358358
}
359359
if (keyCode === KeyCodes.LEFT || keyCode === KeyCodes.UP) {
@@ -439,15 +439,15 @@ export default {
439439
const isNav = this.isNav
440440

441441
// Helper function and flag
442-
const isActivePage = pageNum => pageNum === currentPage
442+
const isActivePage = pageNumber => pageNumber === currentPage
443443
const noCurrentPage = this.currentPage < 1
444444

445445
// Factory function for prev/next/first/last buttons
446446
const makeEndBtn = (linkTo, ariaLabel, btnSlot, btnText, btnClass, pageTest, key) => {
447447
const isDisabled =
448448
disabled || isActivePage(pageTest) || noCurrentPage || linkTo < 1 || linkTo > numberOfPages
449-
const pageNum = linkTo < 1 ? 1 : linkTo > numberOfPages ? numberOfPages : linkTo
450-
const scope = { disabled: isDisabled, page: pageNum, index: pageNum - 1 }
449+
const pageNumber = linkTo < 1 ? 1 : linkTo > numberOfPages ? numberOfPages : linkTo
450+
const scope = { disabled: isDisabled, page: pageNumber, index: pageNumber - 1 }
451451
const $btnContent = this.normalizeSlot(btnSlot, scope) || toString(btnText) || h()
452452
const $inner = h(
453453
isDisabled ? 'span' : isNav ? BLink : 'button',

0 commit comments

Comments
 (0)