-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
Description
Provide a general summary of the issue here
The Card component states in its documentation that it supports the following props:
onActiononPressonPressStartonPressEndonPressChangeonPressUp
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. 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
import { Card, Content, Text } from '@react-spectrum/s2';
const MyComponent = () => {
return (
<Card onPress={(e) => console.log(e)}>
<Content>
<Text>Hi there</Text>
</Content>
</Card>
);
}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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✏️ To Groom