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 Button Issue with Multiple Syntax Signatures in Reference Page #698

Open
SableRaf opened this issue Feb 2, 2025 · 0 comments
Open
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed

Comments

@SableRaf
Copy link
Contributor

SableRaf commented Feb 2, 2025

Most appropriate sections of the p5.js website?

Reference

What is your operating system?

Windows

Web browser and version

132.0.6834.160 (Official Build) (64-bit) (cohort: Stable)

Actual Behavior

When clicking the copy button for functions with multiple syntax signatures (for example: createCanvas), the content includes both signatures merged together in the clipboard:

createCanvas([width], [height], [renderer], [canvas],[width], [height], [canvas])

This issue occurs for any method that has multiple syntax signatures.

Expected Behavior

Each copy button should copy only the corresponding syntax signature. For example:

createCanvas([width], [height], [renderer], [canvas])

or

createCanvas([width], [height], [canvas])

depending on which copy button is clicked.

Steps to reproduce

  1. Visit the createCanvas reference page.
  2. Click the copy button next to either of the syntax examples.
  3. Paste the copied content somewhere (e.g., a text editor).
  4. Notice that both syntax signatures are copied together.

Would you like to work on the issue?

This might make a good first issue. I'm happy to leave it to a new contributor.

@SableRaf SableRaf added Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Good First Issue Good for newcomers Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant