added event appointments
This commit is contained in:
@@ -35,7 +35,11 @@ const SelectCom = <T extends FieldValues>({
|
||||
<SelectTemplate
|
||||
{...form.register(name, formOptions)}
|
||||
onChange={(newValue: any) => {
|
||||
form.setValue(name, newValue);
|
||||
if ('value' in newValue) {
|
||||
form.setValue(name, newValue.value);
|
||||
} else {
|
||||
form.setValue(name, newValue);
|
||||
}
|
||||
form.trigger(name);
|
||||
}}
|
||||
className={cn('w-full placeholder:text-neutral-600', className)}
|
||||
|
||||
Reference in New Issue
Block a user