Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
georgms opened this issue Jul 22, 2022 · 0 comments
Assignees
Labels
C: VPagination VPagination T: bug Functionality that does not work as intended/expected
Milestone

Comments

@georgms
Copy link

georgms commented Jul 22, 2022

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.

@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VPagination VPagination and removed S: triage labels Aug 9, 2022
@KaelWD KaelWD added this to the v2.6.x milestone Aug 9, 2022
@KaelWD KaelWD self-assigned this Aug 9, 2022
KaelWD added a commit that referenced this issue Aug 9, 2022
@KaelWD KaelWD closed this as completed in f3f8d15 Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VPagination VPagination T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

2 participants