primitives icon indicating copy to clipboard operation
primitives copied to clipboard

`RadioGroup.Item` ignores the `onKeyDown` prop

Open david-arteaga opened this issue 1 year ago • 0 comments

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

david-arteaga avatar Aug 15 '24 16:08 david-arteaga