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 8d3895b commit f3f8d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VPagination/VPagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default mixins(
items (): (string | number)[] {
const totalVisible = parseInt(this.totalVisible, 10)

if (totalVisible === 0) {
if (totalVisible === 0 || isNaN(this.length) || this.length > Number.MAX_SAFE_INTEGER) {
return []
}

Expand Down

0 comments on commit f3f8d15

Please sign in to comment.