-
I've forked vuetify trying my hand at solved an issue I raised a few weeks ago. #12732 I'm having a hard time in VDataTable.ts trying to find where the pagination changes as a user enters a search term. Does anyone have an intuition on this matter?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I found where pagination changes on render, along with current-items and page-count.
|
Beta Was this translation helpful? Give feedback.
-
In VData.ts, in the paginateItems method:
As of now, if the items.length is less than this.pageStart, Vuetify decrements the page by 1. This explains the behavior seen in my reproduction link. It would be more safe, and fix the bug if instead something like:
were used. Should I submit a pull request? Should I write a test? |
Beta Was this translation helpful? Give feedback.
I found where pagination changes on render, along with current-items and page-count.