Skip to content

Commit

Permalink
Destroy form modals on close
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaVR committed Jan 6, 2019
1 parent 433c24e commit 6fff207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/educations/EducationsFormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class EducationFormModal extends React.Component<EducationFormModalProps, IEduca
onOk={this.handleOk}
okText={this.props.okText}
confirmLoading={this.state.isSubmitting}
destroyOnClose={true}
>
<Form>
<FormItem>
Expand All @@ -79,7 +80,6 @@ class EducationFormModal extends React.Component<EducationFormModalProps, IEduca
}

private doClose(): void {
this.props.form.resetFields();
this.props.onCloseRequest();
}

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/schools/SchoolsFormModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class SchoolsFormModal extends React.Component<SchoolFormModalProps, ISchoolsFor
onOk={this.handleOk}
okText={this.props.okText}
confirmLoading={this.state.isSubmitting}
destroyOnClose={true}
>
<Form>
<FormItem>
Expand All @@ -79,7 +80,6 @@ class SchoolsFormModal extends React.Component<SchoolFormModalProps, ISchoolsFor
}

private doClose(): void {
this.props.form.resetFields();
this.props.onCloseRequest();
}

Expand Down

0 comments on commit 6fff207

Please sign in to comment.