primevue icon indicating copy to clipboard operation
primevue copied to clipboard

DataTable: rows disappear when data changes

Open ArtBat123 opened this issue 1 year ago • 5 comments

Describe the bug

When using virtualscroll, rows disappear in the table when we scroll to the middle of the table and reduce the amount of data in it. When using horizontal scrolling, data appears. Browser- Firefox 106 !!

Video: https://github.com/primefaces/primevue/assets/79512478/2304c0d9-38dc-4119-94d0-4af43f2b9151

Reproducer

https://codesandbox.io/s/primevue-demo-forked-z7cnvy?file=/src/App.vue

PrimeVue version

3.45.0

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Firefox 106

Steps to reproduce the behavior

1.Scroll to the middle 2. Click on the "1 row" button to update the data

Expected behavior

The line must be visible

ArtBat123 avatar Dec 26 '23 07:12 ArtBat123

Hi,

Thanks a lot for your report! I set a milestone for it. We'll check before the milestone is released. Also, your sample is not working. Could you please update it? Thank you!

mertsincan avatar Jan 29 '24 00:01 mertsincan

Thanks for the answer. Updated link to example. https://codesandbox.io/s/primevue-demo-forked-z7cnvy?file=/src/App.vue

ArtBat123 avatar Jan 29 '24 07:01 ArtBat123

The transform: translate3d() property does not update its value. In this case, Firefox does not fire the onScroll event. It might be worth updating the transform: translate3d() property when updating data.

ArtBat123 avatar Feb 26 '24 14:02 ArtBat123

Unfortunately, codesandbox is not working. Could you share stackblitz demo?

tugcekucukoglu avatar Mar 14 '24 12:03 tugcekucukoglu

@tugcekucukoglu Yes, sure. Try this link https://stackblitz.com/edit/saortp?file=src%2FApp.vue Please use FireFox for testing

ArtBat123 avatar Mar 14 '24 13:03 ArtBat123