Skip to content

Commit

Permalink
Add 'form' attribute to the input element (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer authored Jul 5, 2024
1 parent 0083af8 commit 773f870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export default class Dropzone extends Emitter {
}
this.hiddenFileInput = document.createElement("input");
this.hiddenFileInput.setAttribute("type", "file");
this.hiddenFileInput.setAttribute("form", this.element.id);
if (this.options.maxFiles === null || this.options.maxFiles > 1) {
this.hiddenFileInput.setAttribute("multiple", "multiple");
}
Expand Down

0 comments on commit 773f870

Please sign in to comment.