diff --git a/core/themes/seven/js/dropzone.es6.js b/core/themes/seven/js/dropzone.es6.js index 6da013938d..43aaf6dcc0 100644 --- a/core/themes/seven/js/dropzone.es6.js +++ b/core/themes/seven/js/dropzone.es6.js @@ -59,15 +59,6 @@ .attr('aria-hidden', 'true') .attr('tabindex', '-1'); - // Associate field label with the new button to make sure it is - // announced to screen readers. - const buttonId = `${$(this).attr('id')}-add-button`; - $button.attr('id', buttonId); - $(this) - .parents('.js-form-type-managed-file') - .find('label') - .attr('for', buttonId); - // Create dropzone HTML. const $dropzone = $(`
diff --git a/core/themes/seven/js/dropzone.js b/core/themes/seven/js/dropzone.js index f7d5aa6fa0..a3f63c2a59 100644 --- a/core/themes/seven/js/dropzone.js +++ b/core/themes/seven/js/dropzone.js @@ -34,10 +34,6 @@ $(this).attr('aria-hidden', 'true').attr('tabindex', '-1'); - var buttonId = $(this).attr('id') + '-add-button'; - $button.attr('id', buttonId); - $(this).parents('.js-form-type-managed-file').find('label').attr('for', buttonId); - var $dropzone = $('
\n
\n
\n
\n
'); $dropzone.insertBefore($wrapper).find('.dropzone__no-trigger').append($wrapper);