diff --git a/src/dropzone.js b/src/dropzone.js index 55b233e28..d8111f45a 100644 --- a/src/dropzone.js +++ b/src/dropzone.js @@ -234,7 +234,7 @@ export default class Dropzone extends Emitter { // Making sure that no one can "tab" into this field. this.hiddenFileInput.setAttribute("tabindex", "-1"); // Add arialabel for a11y - this.hiddenFileInput.ariaLabel = "dropzone hidden input"; + this.hiddenFileInput.setAttribute("aria-label", "dropzone hidden input"); // Not setting `display="none"` because some browsers don't accept clicks // on elements that aren't displayed.