We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f6408a commit 3fd9ee6Copy full SHA for 3fd9ee6
packages/components/src/modifiers/hds-clipboard.ts
@@ -88,7 +88,7 @@ export const getTextToCopyFromTargetElement = (
88
textToCopy = targetElement.value;
89
} else {
90
// Hide any screen reader only text from the innerText calculation
91
- let srOnlyTexts = targetElement.querySelectorAll('.sr-only');
+ const srOnlyTexts = targetElement.querySelectorAll('.sr-only');
92
srOnlyTexts.forEach((el: Element) => {
93
el.setAttribute('style', 'display: none;');
94
});
0 commit comments