Skip to content

fix(table): fixed a bug where pressing space key would not trigger row selection handling #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

DRiFTy17
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: N
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

Fix to allow row selection by pressing the space key when a row select checkbox is focused.

Adjusted how the events handled and synchronized to ensure we manually handle row selection for both pointer and keyboard events.

Fixed an additional bug where shift+click row selection was causing text selection on the page by using a pointerdown event instead of click to ensure we can clear the selection when the shift key is pressed during multiselection. Rows will now be selected upon pointerdown as well as keydown and click is no longer listened for.

@DRiFTy17 DRiFTy17 added patch Increment the patch version when merged skip-release Preserve the current version when merged labels Mar 22, 2025
@DRiFTy17 DRiFTy17 requested a review from a team as a code owner March 22, 2025 02:34
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 0ceb7b4 into main Mar 27, 2025
13 checks passed
@DRiFTy17 DRiFTy17 deleted the fix-table-select-keyboard branch March 27, 2025 18:30
Copy link
Contributor

github-actions bot commented Apr 3, 2025

🚀 PR was released in v3.8.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released. skip-release Preserve the current version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants