Fix: Set disabled property last, otherwise it will be overwritten with 'undefined' from the spreaded rest property.
This commit is contained in:
committed by
Sacha Weatherstone
parent
8641c150dd
commit
1ee9d6bb12
@@ -38,9 +38,9 @@ export function GenericInput<T extends FieldValues>({
|
|||||||
: e.target.value,
|
: e.target.value,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
disabled={disabled}
|
|
||||||
{...field.properties}
|
{...field.properties}
|
||||||
{...rest}
|
{...rest}
|
||||||
|
disabled={disabled}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user