refactor(FE): Apply innerProps and className to CustomControl

This commit is contained in:
rstubryan
2026-01-29 10:58:49 +07:00
parent 97bf785fe9
commit 711536975c
+5 -2
View File
@@ -89,7 +89,7 @@ const CustomControl = <
>(
props: ControlProps<Option, IsMulti, Group>
) => {
const { children } = props;
const { children, innerProps, className } = props;
const customProps = props.selectProps as unknown as {
shouldShowAdornment?: boolean;
@@ -101,7 +101,10 @@ const CustomControl = <
return (
<ReactSelectComponents.Control {...props}>
<div className='flex-1 p-3! py-1.5 gap-1 flex items-center'>
<div
className={`${className} flex-1 pl-3 gap-1 flex items-center transition-all duration-200`}
{...innerProps}
>
{shouldShowAdornment && startAdornment}
{children}
</div>