adobe/react-spectrum

Investigate onCellAction behavior with selectionMode="replace"

Open

#3.236 aberto em 15 de jun. de 2022

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (1.500 forks)auto 404
help wanted

Métricas do repositório

Stars
 (15.634 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador