Skip to content

Conversation

@kt3k
Copy link
Contributor

@kt3k kt3k commented Oct 31, 2025

Currently the below part:

const { text } = props;
...
navigator.clipboard.writeText(text)

is transpiled like the below (props.value is used instead of props.text)
Screenshot 2025-10-31 at 10 46 46

and it causes copying of 'undefined' text (ref https://x.com/JLarky/status/1984050194896580874 )

This PR tries to fix it by avoiding using destructuring syntax.

@crowlKats crowlKats enabled auto-merge October 31, 2025 01:53
@crowlKats crowlKats added this pull request to the merge queue Oct 31, 2025
Merged via the queue into jsr-io:main with commit dbf3885 Oct 31, 2025
7 checks passed
@BlackAsLight
Copy link
Contributor

Closed: #1219

@kt3k kt3k deleted the workaround-transpiler-error branch October 31, 2025 05:09
@kt3k
Copy link
Contributor Author

kt3k commented Oct 31, 2025

looks like this didn't work. I opened a new one #1222

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.

3 participants