I just had this issue, on Firefox, and I looked into it a little bit. There are no errors in the console, and the correct message to be copied does get appended as a child in the DOM of the textarea, but it doesn't actually show up as text in the textarea. To reproduce this, even when the copy function does work, I can edit the `share_content` textarea, and then the share buttons stop working. If I delete all content and refresh, then it starts working again. I believe that the issue is that even though the `.innerHTML` is set to the empty string, it is still displaying the value in `.value`, which is never set or cleared. Setting `out.value = t` in `ppint` seems like it would fix this issue.
gereeter
1
Posts
A member registered Mar 14, 2022