Skip to content

Commit

Permalink
Update init.js
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelspellacy committed Oct 12, 2024
1 parent ceaf41a commit c745e07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion a11y/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,11 @@ function fixMindReaderInput() {

if (currentDescribedBy) {

input.setAttribute("aria-describedby", currentDescribedBy + " " + newDescriptionId);
if (!currentDescribedBy.includes(newDescriptionId)) {

input.setAttribute("aria-describedby", currentDescribedBy + " " + newDescriptionId);

}

} else {

Expand Down

0 comments on commit c745e07

Please sign in to comment.