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

RadioGroup.Item ignores the onKeyDown prop #3073

Open
david-arteaga opened this issue Aug 15, 2024 · 0 comments
Open

RadioGroup.Item ignores the onKeyDown prop #3073

david-arteaga opened this issue Aug 15, 2024 · 0 comments

Comments

@david-arteaga
Copy link

Bug report

Current Behavior

onKeyDown event handler on RadioGroup.Item (import * as RadioGroup from '@radix-ui/react-radio-group'; ) is never set.
This seems to be the PR that introduced the bug.

Instead of setting onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {, the line is currently onKeyDown={composeEventHandlers((event) => {, which ignores the onKeyDown handler passed in from props.

Expected behavior

The line should be changed to onKeyDown={composeEventHandlers(props.onKeyDown, (event) => {

Reproducible example

Example

Suggested solution

Accept PR

Additional context

Your environment

Software Name(s) Version
Radix Package(s)
React n/a
Browser
Assistive tech
Node n/a
npm/yarn
Operating System
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

No branches or pull requests

1 participant