reactdatagrid
reactdatagrid copied to clipboard
Keyboard navigation/focus broken near header
There is a bug in keyboard navigation when standing on the first row and pressing up-arrow on the keyboard. You are no longer able to select the focused row with enter. Press down-arrow once and it works again.
Repro:
- Go here: https://reactdatagrid.io/demo
- Click the first row (focus rect is visible, row is selected)
- Keyboard: arrow key down (focus rect moves to second row, first row is still selected)
- Keyboard: enter (focus rect stays, selection moves to second row)
- Keyboard: arrow key up (focus rect moves to first row, second row is still selected)
- Keyboard: arrow key up (focus rect stays, second row is still selected)
- Keyboard: enter (NOTHING HAPPENS - first row should have been selected here)
Something is off when pressing arrow-up in (6)
This is a problem when doing multi-selects from the keyboard.