`Card` component does not support event callbacks when not wrapped in `CardView`
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
The `Card` component states in its documentation that it supports the following props:
- `onAction`
- `onPress`
- `onPressStart`
- `onPressEnd`
- `onPressChange`
- `onPressUp`
However, the "press" actions do not actually trigger any callbacks when the `Card` component is not wrapped in a `CardView`
### 🤔 Expected Behavior?
The onPress- props should be triggered when clicking on the card, [as described by the docs](https://react-spectrum.adobe.com/Card#card). Either that, or remove the documentation saying it's supported.
### 😯 Current Behavior
Callback is not triggered
### 💁 Possible Solution
_No response_
### 🔦 Context
_No response_
### 🖥️ Steps to Reproduce
```tsx
import { Card, Content, Text } from '@react-spectrum/s2';
const MyComponent = () => {
return (
console.log(e)}>
Hi there
);
}
```
### Version
^1.0.0
### What browsers are you seeing the problem on?
Chrome
### If other, please specify.
_No response_
### What operating system are you using?
MacOS - Tahoe 26.2
### 🧢 Your Company/Team
Adobe/Incubator
### 🕷 Tracking Issue
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.