Skip to content

Conversation

@chromy
Copy link
Contributor

@chromy chromy commented Jul 9, 2025

There are two definitions of copyToClipboard in the codebase, one with one arg
and one with two args. The onClick handler ends up calling the wrong one for a
number of links. I assume the issue is something like:

  • Both definitions end up being defined on the same page
  • The onClick ends up getting the one with two args when it expects the one with one arg.

Attempt to fix this by instead using the two arg version and removing the one arg version.
However I do not have a Ruby environment setup to test with so I haven't been able to try it.

This resolves #1108.

@heckj heckj self-requested a review July 10, 2025 16:08
Copy link
Member

@heckj heckj left a comment

Choose a reason for hiding this comment

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

Verified with a locally run version as well

@heckj heckj merged commit d8a8c59 into swiftlang:main Jul 10, 2025
3 checks passed
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.

‘Copy install command’ broken on https://www.swift.org/install/linux/debian/12/

3 participants