-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
On the zustand documentation site, when using the copy button on code blocks (e.g., for the section "What are you building?"), only a partial snippet is copied to the clipboard. For example, clicking copy copies only:
import { create
instead of the full code block in the ```js section. This was reproduced in both Brave and Chrome browsers.
Steps to reproduce
- Go to https://zustand.docs.pmnd.rs/learn/guides/tutorial-tic-tac-toe
- Scroll to the section where you build the tic-tac-toe game, under "What are you building?"
- Click the copy button on the displayed code block.
- Check clipboard contents. Only partial code is copied, not the full snippet.
Clicking the copy button should copy the entire contents of the code block to the clipboard.
Environment
- Brave and Chrome browsers, latest versions
Additional context
Component reference : src/components/mdx/Code/Code.tsx
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels