Skip to content

Add onClick/onPress to MenuItem #5459

Answered by devongovett
jhowell-droit asked this question in Q&A
Discussion options

You must be logged in to vote

Update: this was added in React Aria Components v1.11.0. MenuItem now supports press events (e.g. onPress), as well as other DOM events like onClick etc.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@jhowell-droit
Comment options

@snowystinger
Comment options

@joshsalverda
Comment options

@LFDanLu
Comment options

LFDanLu Nov 21, 2024
Collaborator

Comment options

You must be logged in to vote
4 replies
@snowystinger
Comment options

@schurchleycci
Comment options

@LisaRyrholm
Comment options

@snowystinger
Comment options

Comment options

You must be logged in to vote
1 reply
@schurchleycci
Comment options

Answer selected by devongovett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants