neosync icon indicating copy to clipboard operation
neosync copied to clipboard

Clipboard Copy Doesn't Work in MacOS Safari

Open runako opened this issue 1 year ago • 2 comments

Bug description

Clipboard copy icons in the site do not copy in Safari.

image

The icon in this image is the one I clicked when filing this issue.

How to reproduce

  1. 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").
  2. 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!

runako avatar Sep 07 '24 04:09 runako

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)

nickzelei avatar Sep 09 '24 16:09 nickzelei

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.

image

runako avatar Sep 12 '24 15:09 runako