Skip to content

Commit f3f8d15

Browse files
committed
fix(VPagination): ignore invalid length values
fixes #15499
1 parent 8d3895b commit f3f8d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VPagination/VPagination.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default mixins(
8989
items (): (string | number)[] {
9090
const totalVisible = parseInt(this.totalVisible, 10)
9191

92-
if (totalVisible === 0) {
92+
if (totalVisible === 0 || isNaN(this.length) || this.length > Number.MAX_SAFE_INTEGER) {
9393
return []
9494
}
9595

0 commit comments

Comments
 (0)