Browse Source

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

pull/151/head
Chris L 3 years ago
committed by Sacha Weatherstone
parent
commit
1ee9d6bb12
  1. 2
      src/components/Form/FormInput.tsx

2
src/components/Form/FormInput.tsx

@ -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}
/> />
)} )}
/> />

Loading…
Cancel
Save