Fix: Set disabled property last, otherwise it will be overwritten with 'undefined' from the spreaded rest property.

This commit is contained in:
Chris L
2024-01-06 09:44:32 +10:00
committed by Sacha Weatherstone
parent 8641c150dd
commit 1ee9d6bb12
+1 -1
View File
@@ -38,9 +38,9 @@ export function GenericInput<T extends FieldValues>({
: e.target.value,
)
}
disabled={disabled}
{...field.properties}
{...rest}
disabled={disabled}
/>
)}
/>