Skip to content

Commit 64e2b34

Browse files
committed
Inherit tabIndex in Pre
1 parent e50c521 commit 64e2b34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/pre/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export function Pre({
3030

3131
const copyButton = copy === "" && (
3232
<CopyToClipboard
33+
tabIndex={props.tabIndex}
3334
className={filename ? "_ml-auto" : ""}
3435
getValue={() => preRef.current?.querySelector("code")?.textContent || ""}
3536
/>

0 commit comments

Comments
 (0)