Commit dc2b1c64 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'sh-destroy-dropzone-hidden-input' into 'master'

Destroy Dropzone hidden input when form is destroyed

Closes #209026

See merge request gitlab-org/gitlab!29882
parents abbf6fb3 06104e20
......@@ -29,6 +29,10 @@ export default class GLForm {
if (this.autoComplete) {
this.autoComplete.destroy();
}
if (this.formDropzone) {
this.formDropzone.destroy();
}
this.form.data('glForm', null);
}
......@@ -45,7 +49,7 @@ export default class GLForm {
);
this.autoComplete = new GfmAutoComplete(gl.GfmAutoComplete && gl.GfmAutoComplete.dataSources);
this.autoComplete.setup(this.form.find('.js-gfm-input'), this.enableGFM);
dropzoneInput(this.form, { parallelUploads: 1 });
this.formDropzone = dropzoneInput(this.form, { parallelUploads: 1 });
autosize(this.textarea);
}
// form and textarea event listeners
......
---
title: Destroy Dropzone hidden input when form is destroyed
merge_request: 29882
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment