Skip to content

Commit 773f870

Browse files
authored
Add 'form' attribute to the input element (#11)
See dropzone#2300
1 parent 0083af8 commit 773f870

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dropzone.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export default class Dropzone extends Emitter {
215215
}
216216
this.hiddenFileInput = document.createElement("input");
217217
this.hiddenFileInput.setAttribute("type", "file");
218+
this.hiddenFileInput.setAttribute("form", this.element.id);
218219
if (this.options.maxFiles === null || this.options.maxFiles > 1) {
219220
this.hiddenFileInput.setAttribute("multiple", "multiple");
220221
}

0 commit comments

Comments
 (0)