Fix html select defaultValue
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
Jorge Vargas 2025-04-16 22:33:46 -06:00
parent bd01b2351c
commit afce2ebac6

View file

@ -54,14 +54,21 @@ export function InputArea(props: CustomInputProps & Omit<ComponentProps<'textare
} }
export function InputSelect(props: CustomInputProps & ComponentProps<'select'>) { export function InputSelect(props: CustomInputProps & ComponentProps<'select'>) {
const { name, className, dark = false, label, ...attrs } = props const { name, className, dark = false, label, children, ...attrs } = props
return ( return (
<div className='flex flex-col'> <div className='flex flex-col'>
<InputLabel dark={dark} name={name}> <InputLabel dark={dark} name={name}>
{label} {label}
</InputLabel> </InputLabel>
<select name={name} className='bg-zinc-200 rounded-md p-2 mt-2 h-full mb-3 text-black' {...attrs} /> <select
autoComplete='off'
name={name}
className='bg-zinc-200 rounded-md p-2 mt-2 h-full mb-3 text-black'
{...attrs}
>
{children}
</select>
</div> </div>
) )
} }