adobe / adobe/react-spectrum

Investigate onCellAction behavior with selectionMode="replace"

Open
#3,236 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
15.9k
Forks
1.6k
Avg merge
3d 9m
Merged PRs (30d)
59

Description

onCellActions behave oddly with selectionMode="replace" (aka highlight selection mode), preventing row selection on click. This is specifically for tables created with the aria hooks, the React Spectrum TableView doesn't support cell actions.

Ideally, onCellAction should behave similarly to onRowAction in selectionMode="replace" (i.e. described here in https://react-spectrum.adobe.com/react-aria/useTable.html#row-actions). May require changes to usePress to continue propagation, try stuff out.

Contributor guide

Open the contributing guide

Research direction

Start with the aria hooks table behavior around onCellAction and selectionMode="replace", then compare it with the onRowAction behavior described in the useTable documentation. Investigate whether usePress is stopping the propagation needed for row selection, and verify that cell actions preserve row selection on click without changing React Spectrum TableView behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.