Skip to content

Conversation

charliepark
Copy link
Contributor

On #2860, I noticed that clicking the copy buttons was opening the JSON viewer for each row, because the CopyToClipboard component isn't capturing the event bubbling. This fixes that.

Copy link

vercel bot commented Aug 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
console Ready Ready Preview Aug 25, 2025 9:37pm

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Might not need the e.preventDefault(): since it's not a submit button, I don't think there is a default behavior.

@charliepark
Copy link
Contributor Author

Yeah, debated leaving that out, but read that it's often included on event handlers alongside stopPropagation by convention, but that felt a little funny to me as well. Will drop it out and we can add it down the road if it's ever needed. It won't be.

@charliepark charliepark merged commit 2e4109a into main Aug 25, 2025
7 checks passed
@charliepark charliepark deleted the prevent-CopyToClipboard-bubbling branch August 25, 2025 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants