Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{cloneElement(child as React.ReactElement, {
size: size,
variantColor: variantColor,
onChange: () => checkboxGroup.onChange(child.props.value),
isChecked: checkboxGroup.value.includes(child.props.value),
})}
);
});
// Omit incompatible values
const finalProps = omit(props, ["defaultValue", "value", "onChange"]);
return (
{clones}
);
};
if (!input) {
input = rootRef.current.querySelector(
"input:not(:disabled), [role=radio]:not([aria-disabled=true])",
);
}
if (input) {
(input as HTMLInputElement).focus();
}
},
}),
[],
);
const finalProps = omit(props, [
"defaultValue",
"value",
"onChange",
"name",
]);
return (
{clones}
);
},
);