Skip to content

Commit

Permalink
fix: fixed duplicate calls in FormRadioSet and FormCheckboxSet
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Oct 10, 2023
1 parent 39d9676 commit 230e19b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Form/FormCheckbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const FormCheckbox = React.forwardRef(({
...props,
className: controlClassName,
});
const control = React.createElement(controlAs, { ...checkboxInputProps, ref });
const control = React.createElement(controlAs, { ...props, className: controlClassName, ref });
return (
<FormGroupContextProvider
controlId={checkboxInputProps.id}
Expand Down
2 changes: 1 addition & 1 deletion src/Form/FormRadio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const FormRadio = React.forwardRef(({
'pgn__form-control-disabled': radioInputProps.disabled,
})}
>
<RadioControl {...radioInputProps} ref={ref} />
<RadioControl ref={ref} className={controlClassName} {...props} />
<div>
<FormLabel className={labelClassName}>
{children}
Expand Down

0 comments on commit 230e19b

Please sign in to comment.