nucleuscloud / neosync

Open source data anonymization and synthetic data orchestration for developers. Create high fidelity synthetic data and sync it across your environments.
https://www.neosync.dev
Other
3.36k stars 120 forks source link

Clipboard Copy Doesn't Work in MacOS Safari #2636

Open runako opened 2 months ago

runako commented 2 months ago

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!

nickzelei commented 2 months ago

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)

runako commented 2 months ago

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