primitives
primitives copied to clipboard
`RadioGroup.Item` ignores the `onKeyDown` prop
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
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 |