Skip to content

Commit

Permalink
fix(VPagination): hide visible items if value is <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
johnleider committed Nov 20, 2023
1 parent 5b0055b commit 3a52406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vuetify/src/components/VPagination/VPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export const VPagination = genericComponent<VPaginationSlots>()({
const range = computed(() => {
if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return []

if (totalVisible.value <= 1) return [page.value]
if (totalVisible.value <= 0) return []
else if (totalVisible.value === 1) return [page.value]

if (length.value <= totalVisible.value) {
return createRange(length.value, start.value)
Expand Down

0 comments on commit 3a52406

Please sign in to comment.