Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adobe/react-spectrum
/ onPress
Function
onPress
packages/react-aria/src/table/useTableColumnHeader.ts:80–82 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
78
let
{pressProps, isPressed} = usePress({
79
isDisabled: !allowsSorting || isSelectionCellDisabled,
80
onPress() {
81
state.sort(node.key);
82
},
83
ref
84
});
85
Callers
nothing calls this directly
Calls
1
sort
Method · 0.65
Tested by
no test coverage detected