Skip to content

Commit

Permalink
Issue #133: Fix console Type error with non-existent aria label (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela authored Aug 31, 2024
1 parent b518a3a commit 76189b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/tinymce-dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
$(this).next().focus();
$(this).appendTo('#buttons-available');
let message = Backdrop.t('%button removed from active elements.', {
'%button': $(this).attr('aria-label')
'%button': $(this).text()
});
$('#announce-addremove').html(message);
updateFormItem();
Expand All @@ -106,7 +106,7 @@
$(this).appendTo('#buttons-active');
$(this).focus();
let message = Backdrop.t('%button added to active elements.', {
'%button': $(this).attr('aria-label')
'%button': $(this).text()
});
$('#announce-addremove').html(message);
updateFormItem();
Expand Down

0 comments on commit 76189b2

Please sign in to comment.