Skip to content

fix: keyboard navigation while scrolling and inline filter fixes - #8

Merged
SaiFi0102 merged 3 commits into
masterfrom
fix-keyboard-navigation
Nov 26, 2026
Merged

SaiFi0102 merged 3 commits into
masterfrom
fix-keyboard-navigation

Conversation

@SaiFi0102

Copy link
Copy Markdown
Member

Fixes for keyboard navigation and inline filters. All of these bugs were already in 1.20.8 and upstream; none come from the 1.27.1 merge.

Keyboard navigation

  • Up presses were lost while the table scrolled up. HyperList only re-renders once the scroll has moved more than a row, so the row above was often missing from the DOM. Up/Down now render the rows around the focused cell first (bodyRenderer.renderRowsAtScrollPosition(), which uses HyperList's private _renderChunk).
  • The focused cell could end up under the sticky columns. scrollToCell now scrolls horizontally with scrollToColumn(), which leaves room for the sticky columns before the cell, instead of scrollIntoView.
  • Ctrl+Up/Down went to data rows 0 and N-1, and did nothing when those weren't rendered. They now go to the first/last row as shown, after sorting, filtering and collapsing (bodyRenderer.visibleRowOrder), scrolling to it first.
  • Shift+arrow selection never scrolled, and the keyboard stopped working once the focused cell's row left the DOM. The selection cursor is now kept in view, and focus falls back to the wrapper when the focused cell is scrolled out of the DOM.

Inline filters

  • A text filter on a number column threw (toLowerCase on a number), so the filter never applied.
  • !=text behaved like "contains". It now hides cells whose whole text or formatted value matches, the opposite of =text.
  • A bare = or != no longer filters on 0 while the value is still being typed.
  • Filters apply on input instead of keydown, so pasting or cutting with the mouse works.

Testing

  • New playwright/tests/keyboard_navigation.spec.js (6 tests) and 3 filter tests in fork_features.spec.js. Each fails on master and passes here.
  • yarn test: 79 passed, 1 skipped, in Chromium and in Firefox.
  • Checked by hand in the playground: default table, 59k rows, tree view with collapsed nodes, sticky columns, filters, editing.
  • Not tested in the paralogic_v15 bench.

Merge with "Create a merge commit" so both fix: commits count towards the next computed release (1.27.2).

🤖 Generated with Claude Code

@SaiFi0102
SaiFi0102 merged commit 8257a31 into master Nov 26, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.27.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SaiFi0102
SaiFi0102 deleted the fix-keyboard-navigation branch November 26, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant