ce icon indicating copy to clipboard operation
ce copied to clipboard

Page scrolls to top after keyboard-only interaction (Copy + Edit via F2 + Enter) โ€” observed in v4 and v5

Open aravindps04 opened this issue 8 months ago โ€ข 0 comments

A user experience issue in Jspreadsheet CE (tested on both v4 and v5) where the screen scrolls to the top unexpectedly during keyboard-only operations.

๐Ÿ”„ Steps to Reproduce Navigate to a spreadsheet table with scrollable content.

  1. Select a cell or a column
  2. Press Ctrl+C to copy.
  3. Press F2 to enter edit mode.
  4. Press Enter to confirm the value.

๐Ÿงช Observed Behavior After pressing Enter, the page scrolls to the top โ€” which disrupts user focus and context. No error appears in the console.

โœ… Expected Behavior The cell should update and focus should remain on the same row without affecting the scroll position.

๐Ÿ” Additional Notes This issue appears only when using the keyboard (no mouse interaction involved). Similar issues have been reported earlier: https://github.com/jspreadsheet/ce/issues/980 We're currently unable to trace the exact cause but believe it's triggered internally during cell re-render or focus.

๐Ÿ“ฆ Environment Library: Jspreadsheet CE v4 & v5 Browser: Reproducible on latest Chrome

Is this a known regression? Any workaround or fix suggestion would be appreciated.

aravindps04 avatar May 28 '25 11:05 aravindps04