primefaces / primefaces/primereact

Issue with Data Table Editable Cells and Single Selection Mode

Open
#6,780 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Needs Triage
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When editing a cell in the data table and attempting to change the status using the dropdown menu, using the keyboard arrow keys (up and down) to navigate through the dropdown options results in navigating through the data table rows instead.

Reproducer

https://stackblitz.com/edit/ljsz8r?file=src%2FApp.jsx

PrimeReact version

10.6.6

React version

18.x

Language

ALL

Build / Runtime

Next.js

Browser(s)

Chrome 126

Steps to reproduce the behavior
  1. Open the data table with editable cells and single selection mode enabled.
  2. Click on the “Status” cell to activate the dropdown menu.
  3. Attempt to navigate through the dropdown options using the keyboard up and down arrow keys.
Expected behavior

When the dropdown menu is open, the up and down arrow keys should navigate through the options within the dropdown menu.

Actual Behavior:
Instead of navigating through the dropdown options, the up and down arrow keys cause navigation through the rows of the data table.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproducer and inspect the editable DataTable cell, status dropdown, and single-selection keyboard handling. Reproduce the issue in Chrome with PrimeReact 10.6.6; done means the up and down arrow keys move through dropdown options without moving between table rows.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.