added format command and added trailing commas to reduce conflicts

This commit is contained in:
dswbx
2025-02-26 20:06:03 +01:00
parent 88b5359f1c
commit 7743f71a11
414 changed files with 3622 additions and 3610 deletions

View File

@@ -16,13 +16,13 @@ export function MantineSelect<T extends FieldValues>({
}: MantineSelectProps<T>) {
const {
field: { value, onChange: fieldOnChange, ...field },
fieldState
fieldState,
} = useController<T>({
name,
control,
defaultValue,
rules,
shouldUnregister
shouldUnregister,
});
return (
@@ -34,8 +34,8 @@ export function MantineSelect<T extends FieldValues>({
...new Event("change", { bubbles: true, cancelable: true }),
target: {
value: e,
name: field.name
}
name: field.name,
},
});
// @ts-ignore
onChange?.(e);