neosync
neosync copied to clipboard
Clipboard Copy Doesn't Work in MacOS Safari
Bug description
Clipboard copy icons in the site do not copy in Safari.
The icon in this image is the one I clicked when filing this issue.
How to reproduce
- Click any of the copy icons in the app. For example, on the Settings->Members->Invites page, next to the member ("Copy the invite link").
- Browser console shows "Clipboard not supported"
Environment
macOS Sonoma 14.1 (23B74) Safari Version 17.1 (19616.2.9.11.7)
Additional context
I have not found this to work for any of the copy icons I have encountered in the app.
Thank you for your bug report – we love squashing them!
Hm, I'm not able to reproduce this.
I just tried it in Safari and was able to use the copy clipboard functionality.
We are using the Safari Navigator API which has been supported since 13.1. https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard
Pretty strange.
I'm on a slightly newer macos/safari however.
Environment
macOS 14.6.1 (23G93) Safari Version 17.6 (19618.3.11.11.5)
Weird. I just double-checked that some clipboard copy implementations work for me, notably the clone repo icon in Github. I'm not sure what it does differently.