From 230e19b61206eed69d046b0b2df8e6901fe6ce7d Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Tue, 10 Oct 2023 11:01:02 +0300 Subject: [PATCH] fix: fixed duplicate calls in FormRadioSet and FormCheckboxSet --- src/Form/FormCheckbox.jsx | 2 +- src/Form/FormRadio.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/FormCheckbox.jsx b/src/Form/FormCheckbox.jsx index 9a9b736b899..0fa1f061c1f 100644 --- a/src/Form/FormCheckbox.jsx +++ b/src/Form/FormCheckbox.jsx @@ -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 ( - +
{children}