Skip to content

Commit

Permalink
Merge pull request #1820 from gluestack/fix/radio-focus-issue
Browse files Browse the repository at this point in the history
fix: radio focus issue
  • Loading branch information
Viraj-10 authored Mar 18, 2024
2 parents ada7cb1 + 827626b commit 8596e7f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/unstyled/radio/src/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ export const RadioGroup = (StyledRadioGroup: any) =>
};
}, [formControlContext, state]);

const radioGroupProps = React.useMemo(
() => radioGroupState.radioGroupProps,
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
return (
<RadioGroupProvider state={contextValue}>
<StyledRadioGroup {...radioGroupProps} {...props} ref={ref}>
<StyledRadioGroup
{...radioGroupState.radioGroupProps}
{...props}
ref={ref}
>
{children}
</StyledRadioGroup>
</RadioGroupProvider>
Expand Down

0 comments on commit 8596e7f

Please sign in to comment.