Skip to content

[Bug Report][2.6.4] Pagination crashes / severly slows down browser when called with :length="Infinity" #15499

@georgms

Description

@georgms

Environment

Vuetify Version: 2.6.4
Vue Version: 2.6.14
Browsers: Firefox 102.0
OS: Ubuntu undefined

Steps to reproduce

  1. Call a pagination component with :length="Infinity" (or implicitly :length="1000 / 0" or some other expression that will result in Infinity):
<v-pagination :length="1000 / 0" :value="1" />

Expected Behavior

A pagination component with 0 pages is displayed.

Actual Behavior

Severely slows down (Firefox) or even crashes the tab (Chromium).

Reproduction Link

https://codepen.io/georgms/pen/WNzOozL

Other comments

Be careful when opening the reproduction link as it might crash parts of your system.

Metadata

Metadata

Assignees

Labels

C: VPaginationT: bugFunctionality that does not work as intended/expected

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions