-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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][3.4.4] VDataTableVirtual renders all rows when items are updated #18806
Comments
+1 |
This looks like it may have been resolved in v3.4.5. @shengzhou1216 Can you please confirm? |
I have tested the issuse in v3.4.5 and v3.4.6, it seems that the problem still persists. |
@shengzhou1216 I saw your commit and tried to add the following prop to the VDataTableVirtual, and it had the same effect: <v-data-table-virtual :item-height="16"></v-data-table-virtual> |
Temporary workaround posted above seems to work intermittently. |
+1 Waiting for official fix |
one temporary solution that worked for me is to rerender v-data-table-virtual when items are updated by using :key property. Every time length changes it rerenders the component. <template>
<v-data-table-virtual
:headers="headers"
:items="boats"
height="400"
item-value="name"
:key="boats.length"
></v-data-table-virtual>
</template>``` |
Same issue for |
Environment
Vuetify Version: 3.4.4
Last working version: 3.3.23
Vue Version: 3.3.9
Browsers: Firefox 119.0, Google Chrome
OS: Linux x86_64
Steps to reproduce
ref
with empty array:items
propref
variable in step 1 with a large number of items.v-table tbody
and count the rows or use the following:document.querySelector('.v-table tbody').querySelectorAll('tr').length
in the consoleNOTE: This seems to have broken AFTER 3.4.0
Expected Behavior
Only visible rows should render at once.
Actual Behavior
All rows render.
Reproduction Link
UPDATED: https://play.vuetifyjs.com/#...
OLD: https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: