diff --git a/.storybook/components/DocsHeader.tsx b/.storybook/components/DocsHeader.tsx index b8d0d828c2d..7de3d7ad5fc 100644 --- a/.storybook/components/DocsHeader.tsx +++ b/.storybook/components/DocsHeader.tsx @@ -72,7 +72,7 @@ export const InfoTable = ({ const supportsClipboardApi = typeof ClipboardItem !== 'undefined'; const handleCopy = async (e) => { - const importStatementCell = e.currentTarget.parentElement.querySelector('[data-import]'); + const importStatementCell = e.currentTarget.parentElement.parentElement.querySelector('[data-import-cell]'); if (supportsClipboardApi && importStatementCell) { const html = new Blob([importStatementCell.outerHTML], { type: 'text/html' }); const text = new Blob([importStatementCell.outerText], { type: 'text/plain' }); @@ -89,7 +89,7 @@ export const InfoTable = ({ - + {supportsClipboardApi && (