kendo-vue icon indicating copy to clipboard operation
kendo-vue copied to clipboard

[Bug][Grid] Scrollbar position is reset if the total prop is changed

Open filipKovachev opened this issue 2 years ago • 1 comments

When using the total prop and a new item is added to the data or one is removed, the scrollbar position is reset. This can be seen in the following example:

https://codesandbox.io/s/serene-matsumoto-mlldh8

Steps to reproduce:

  1. Scroll down so the scrollbar is not on the top
  2. Click add an item or remove and item
  3. Observe how the scroll is shifted to the top

When checking the switch component on, this behavior is not reproduced, however, empty spaces are being displayed.

Ticket ID: 1622189

filipKovachev avatar Sep 11 '23 12:09 filipKovachev

This issue is reproducible in React as well: https://stackblitz.com/edit/react-2xjvnl-f3hmma?file=app%2Fmain.jsx

filipKovachev avatar Sep 11 '23 12:09 filipKovachev