Skip to content

Commit

Permalink
Add type to event
Browse files Browse the repository at this point in the history
  • Loading branch information
Diana Fulga committed Jan 25, 2024
1 parent 05c5297 commit 823df4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const RadioGroup = ({
const checkedItem = useMemo(() => items.findIndex(item => item.checked), [items])
const [selected, setSelected] = useState(checkedItem)

const handleKeyDown = (event: any) => {
const handleKeyDown = (event: React.KeyboardEvent<HTMLDivElement>) => {
if (event.code === 'ArrowRight' || event.code === 'ArrowDown') {
event.preventDefault()

Expand Down

0 comments on commit 823df4d

Please sign in to comment.