Skip to content

Commit

Permalink
use setAttribute() for setting the aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Aug 22, 2024
1 parent 45c1ada commit b3ed518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b3ed518

Please sign in to comment.