Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type of onClick for Link component in React #1699

Merged
merged 1 commit into from Oct 6, 2023

Conversation

thecrypticace
Copy link
Member

An onClick in React — or event in the browser — never receives keyboard events. Even for a button that is “clicked” using enter or spacebar the browser creates a corresponding pointer event for the action that is passed into onClick.

An `onClick` in React — or event in the browser — never receives keyboard events. Even for a button that is “clicked” using enter or spacebar the browser creates a corresponding pointer event for the action that is passed into `onClick`.
@thecrypticace thecrypticace merged commit 2595fa3 into master Oct 6, 2023
6 checks passed
@thecrypticace thecrypticace deleted the fix/react-link-on-click-props branch October 6, 2023 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant