Skip to content

Commit

Permalink
fix(VPagination): ignore invalid length values
Browse files Browse the repository at this point in the history
fixes #15499
  • Loading branch information
KaelWD committed Aug 9, 2022
1 parent 4073ba8 commit a0f135b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -150,7 +150,7 @@ export const VPagination = defineComponent({
})

const range = computed(() => {
if (length.value <= 0) return []
if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return []

if (totalVisible.value <= 2) return [page.value]

Expand Down

0 comments on commit a0f135b

Please sign in to comment.