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 5 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