Skip to content

Commit 3fd9ee6

Browse files
committed
Fix: component linting
1 parent 0f6408a commit 3fd9ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/modifiers/hds-clipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const getTextToCopyFromTargetElement = (
8888
textToCopy = targetElement.value;
8989
} else {
9090
// Hide any screen reader only text from the innerText calculation
91-
let srOnlyTexts = targetElement.querySelectorAll('.sr-only');
91+
const srOnlyTexts = targetElement.querySelectorAll('.sr-only');
9292
srOnlyTexts.forEach((el: Element) => {
9393
el.setAttribute('style', 'display: none;');
9494
});

0 commit comments

Comments
 (0)