Skip to content

Pressing Space with nothing selected breaks selection in Users, Groups and Spaces #3677

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Pressing Space with nothing selected breaks selection in Users, Groups and Spaces. Cause: packages/web-app-admin-settings/src/composables/keyboardActions/useKeyboardTableNavigation.ts:26-37 pushes lastSelectedRow even when none was found.

Reproduction Steps

  1. Open admin settings → Users, Groups or Spaces.
  2. Press Space.
  3. Tick a row's checkbox.

Expected Outcome

Space does nothing; the checkbox selects the row.

Actual Outcome

Cannot destructure property 'id' of 'undefined' (Groups: reading 'groupTypes'); the checkbox is checked but no batch actions or count appear until reload.

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions