Table scrolls to selected cell on mount on 16.2

Hello,

I’m currently migrating from 14.4 to 16.2. One thing I have noticed is that the table scrolls to the selected cell whenever it mounts in 16.2, whereas the scroll does not happen in 14.4. Is this an intended behavior? If so, is there any way to prevent this action?

Old version(14.4): handsontable - StackBlitz

New version(16.2): handsontable - StackBlitz

  1. Scroll to bottom and click bottom cell
  2. Scroll to top and click on hide button
  3. Click on hide button again
  4. The table is displayed
    1. Old version: No scroll
    2. New version: Scrolls to the selected cell (bottom)

Hi @hjeong1200

This is an intended behavior that comes from improving the focus management. We treated the previous behavior as a bug and we don’t have any option to modify it.

Hello @adrian.szymanski,

Thank you for the clarification. I understand that the current behavior is the intended business logic decision.

However, if we think of a situation where there are multiple spreadsheets available as a tab, then the user would expect their last scrolled position to be preserved when they switch between the spreadsheets. We can observe this in Excel or Google Sheets. Could you consider this option as a feature rather than a bug?

@hjeong1200

That’s a good point. I’ll report this idea and let you know if anything changes in this matter.

1 Like