Skip to content

Commit

Permalink
Merge pull request #351 from credebl/input-field-issue
Browse files Browse the repository at this point in the history
fix:input fields issue
  • Loading branch information
sanjay-k1910 authored Oct 16, 2023
2 parents 1df3f07 + 7ab300c commit c9dc612
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/components/CreateEcosystemOrgModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,14 @@ const CreateEcosystemOrgModal = (props: IProps) => {
return (
<Modal show={props.openModal} onClose={() => {
setLogoImage({
logoFile: "",
imagePreviewUrl: "",
fileName: ''
logoFile: " ",
imagePreviewUrl: " ",
fileName: ' '
})
setFormData({
name:" ",
description:" "
})
setFormData(initialFormData)
props.setOpenModal(false)
}
}>
Expand Down Expand Up @@ -267,8 +270,8 @@ const CreateEcosystemOrgModal = (props: IProps) => {
values: Values,
{ resetForm }: FormikHelpers<Values>
) => {

submit(values)
resetForm();

}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ const SendInvitationModal = (props: {
show={props.openModal}
onClose={() => {
setInvitations([]);
setInitialInvitationData(initialData);
setInitialInvitationData({
email:" ",
});
props.setOpenModal(false);
}}
>
Expand Down

0 comments on commit c9dc612

Please sign in to comment.