adobe/react-spectrum

Investigate onCellAction behavior with selectionMode="replace"

Open

#3.236 geöffnet am 15. Juni 2022

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.500 Forks)auto 404
help wanted

Repository-Metriken

Stars
 (15.634 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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