Skip to content

Commit

Permalink
fix(screenreader): update removal of hidden screenreader label
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 authored and jason-capsule42 committed May 23, 2023
1 parent c0b7ba5 commit e7744b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/auro-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ class AuroSelect extends LitElement {
});

this.addEventListener('blur', () => {
document.body.removeChild(document.getElementById(textId));
if (document.contains(placeholderLabel)) {
document.body.removeChild(placeholderLabel);
}
});
}

Expand Down

0 comments on commit e7744b1

Please sign in to comment.