Skip to content

Commit 3b9b37d

Browse files
committed
#1287: Removed disabled prop from form fields
1 parent dee8578 commit 3b9b37d

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/frontend/src/pages/AdminToolsPage/FinanceConfig/AccountCodeFormModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ const AccountCodeFormModal = ({ showModal, handleClose, defaultValues, onSubmit
2626
const {
2727
handleSubmit,
2828
control,
29-
formState: { isValid },
3029
reset
3130
} = useForm({
3231
mode: 'onChange',
@@ -58,7 +57,6 @@ const AccountCodeFormModal = ({ showModal, handleClose, defaultValues, onSubmit
5857
handleUseFormSubmit={handleSubmit}
5958
onFormSubmit={onFormSubmit}
6059
formId={!!defaultValues ? 'edit-vendor-form' : 'create-vendor-form'}
61-
disabled={!isValid}
6260
showCloseButton
6361
>
6462
<FormControl fullWidth>

src/frontend/src/pages/AdminToolsPage/FinanceConfig/CreateVendorModal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const CreateVendorModal = ({ showModal, handleClose }: NewVendorProps) => {
3636
const {
3737
handleSubmit,
3838
control,
39-
formState: { isValid },
4039
reset
4140
} = useForm({
4241
mode: 'onChange',
@@ -58,7 +57,6 @@ const CreateVendorModal = ({ showModal, handleClose }: NewVendorProps) => {
5857
handleUseFormSubmit={handleSubmit}
5958
onFormSubmit={onSubmit}
6059
formId="new-vendor-form"
61-
disabled={!isValid}
6260
showCloseButton
6361
>
6462
<FormControl>

0 commit comments

Comments
 (0)