From 7ab300cd39ae84266f226ee6701e2601f2c5a580 Mon Sep 17 00:00:00 2001 From: pranalidhanavade Date: Mon, 16 Oct 2023 19:13:54 +0530 Subject: [PATCH] fix:fixed input field issue Signed-off-by: pranalidhanavade --- src/components/CreateEcosystemOrgModal/index.tsx | 13 ++++++++----- .../invitations/SendInvitationModal.tsx | 4 +++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/CreateEcosystemOrgModal/index.tsx b/src/components/CreateEcosystemOrgModal/index.tsx index 9e02683e2..5ebda9078 100644 --- a/src/components/CreateEcosystemOrgModal/index.tsx +++ b/src/components/CreateEcosystemOrgModal/index.tsx @@ -235,11 +235,14 @@ const CreateEcosystemOrgModal = (props: IProps) => { return ( { setLogoImage({ - logoFile: "", - imagePreviewUrl: "", - fileName: '' + logoFile: " ", + imagePreviewUrl: " ", + fileName: ' ' + }) + setFormData({ + name:" ", + description:" " }) - setFormData(initialFormData) props.setOpenModal(false) } }> @@ -267,8 +270,8 @@ const CreateEcosystemOrgModal = (props: IProps) => { values: Values, { resetForm }: FormikHelpers ) => { - submit(values) + resetForm(); }} > diff --git a/src/components/organization/invitations/SendInvitationModal.tsx b/src/components/organization/invitations/SendInvitationModal.tsx index 3eec2645a..0dcb522f9 100644 --- a/src/components/organization/invitations/SendInvitationModal.tsx +++ b/src/components/organization/invitations/SendInvitationModal.tsx @@ -145,7 +145,9 @@ const SendInvitationModal = (props: { show={props.openModal} onClose={() => { setInvitations([]); - setInitialInvitationData(initialData); + setInitialInvitationData({ + email:" ", + }); props.setOpenModal(false); }} >