Skip to content

Commit ed9d87e

Browse files
committed
Update DocsHeader.tsx
1 parent 7cd6203 commit ed9d87e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.storybook/components/DocsHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const InfoTable = ({
7272
const supportsClipboardApi = typeof ClipboardItem !== 'undefined';
7373

7474
const handleCopy = async (e) => {
75-
const importStatementCell = e.currentTarget.parentElement.querySelector('[data-import]');
75+
const importStatementCell = e.currentTarget.parentElement.parentElement.querySelector('[data-import-cell]');
7676
if (supportsClipboardApi && importStatementCell) {
7777
const html = new Blob([importStatementCell.outerHTML], { type: 'text/html' });
7878
const text = new Blob([importStatementCell.outerText], { type: 'text/plain' });

0 commit comments

Comments
 (0)