Skip to content

Commit

Permalink
fix(RadioE): Resolve strict null errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jpveooys committed Feb 9, 2022
1 parent 19bcb14 commit 298fbcd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export const RadioE = React.forwardRef<HTMLInputElement, RadioEProps>(

const handleClick = (event: React.MouseEvent<HTMLDivElement>) => {
if (event.target !== localRef.current) {
localRef.current.click()
localRef.current?.click()
}
}

const handleKeyUp = (_: React.KeyboardEvent) => {
localRef.current.focus()
localRef.current?.focus()
}

return (
Expand Down

0 comments on commit 298fbcd

Please sign in to comment.