Commit dbf3885
authored
fix: (potential) workaround for transpiler's error (#1221)
Currently the below part:
```js
const { text } = props;
...
navigator.clipboard.writeText(text)
```
is transpiled like the below (`props.value` is used instead of
`props.text`)
<img width="768" height="319" alt="Screenshot 2025-10-31 at 10 46 46"
src="https://github.com/user-attachments/assets/22a870f1-c547-4aa1-ab14-3f6bcb84bbc9"
/>
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.1 parent afcbc21 commit dbf3885
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments