jspreadsheet / jspreadsheet/ce
Page scrolls to top after keyboard-only interaction (Copy + Edit via F2 + Enter) — observed in v4 and v5
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 890
- PR merge metrics
- No merged PRs in 30d
Description
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.
- Select a cell or a column
- Press Ctrl+C to copy.
- Press F2 to enter edit mode.
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in a scrollable Jspreadsheet CE table on the latest Chrome using the Ctrl+C, F2, and Enter sequence, then compare keyboard-only behavior with mouse interaction. Review the related issue #980 and investigate the internal cell re-render or focus path. Done means the edited cell retains focus and row position without scrolling the page to the top in both v4 and v5.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100