Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When pressing the copy button in the code block, 'Copy' is copied along with it. #3160

Open
2 tasks done
CaseyNelson314 opened this issue Oct 20, 2024 · 0 comments
Open
2 tasks done

Comments

@CaseyNelson314
Copy link

Preliminary Checks

Description

When you press the copy button on the code block, the “Copy” is copied together with the source code.

Reproduction Link

https://caseynelson314.github.io/hugoblox-bugreport-copybutton/post/bug/

Steps to Reproduce

  1. Go to the link and press the copy button in the upper right corner of the code block.
  2. Stick the copied string to a notepad, etc.

Expected Result

Only the source code described in the code block is copied to the clipboard.

Actual Result

In addition to the source code, the string “Copy” is copied together.

What Hugo Module versions does your site use?

module github.com/HugoBlox/hugo-blox-builder/starters/academic-cv

go 1.19

require (
github.com/HugoBlox/hugo-blox-builder/modules/blox-plugin-netlify v1.1.2-0.20231209203044-d31adfedd40b
github.com/HugoBlox/hugo-blox-builder/modules/blox-tailwind v0.2.1-0.20241012174104-661cadc17327
)

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome, Safari, Firefox, Microsoft Edge

Which Hugo Blox template are you using?

https://github.com/HugoBlox/theme-academic-cv

What version of Hugo are you using?

extended v0.134.3-5fb333b9f5ff4ec018f9d78910177d0bec1befb0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@CaseyNelson314 and others