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

"Copy Code" Feature Not Copying Code #1243

Open
benanamen opened this issue Apr 3, 2023 · 3 comments
Open

"Copy Code" Feature Not Copying Code #1243

benanamen opened this issue Apr 3, 2023 · 3 comments

Comments

@benanamen
Copy link

benanamen commented Apr 3, 2023

Source: Default v5 Branch

The "Copy Code" feature in the "Source Code" window does not copy the displayed code to the Clipboard.

It works fine in any theme at bootswatch.com

Working Example: https://bootswatch.com/superhero/

  1. Hover over a element on the page and click the <> popup button
  2. "Source Code" Modal Window Opens displaying code for the element you hovered on and a "Copy Code" Button
  3. Click the "Copy Code" button and Modal Window closes.
  4. Code can now be pasted into whatever.

* Master Branch "Copy Code" works.

@thomaspark
Copy link
Owner

I'm not able to replicate this. Does console give you any errors when you click "Copy Code"?

@benanamen
Copy link
Author

benanamen commented Apr 4, 2023

No errors show in console. What/where is the code that handles the copy to clipboard?

@thomaspark
Copy link
Owner

One of your extensions may be interfering.

The code is here:
(https://github.com/thomaspark/bootswatch/blob/v5/docs/_assets/js/custom.js#L56-L64)

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

No branches or pull requests

2 participants