Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] "Copy Guide Data" under utilities isn't working #59

Closed
KatieMFritz opened this issue Feb 23, 2022 · 4 comments
Closed

[Bug] "Copy Guide Data" under utilities isn't working #59

KatieMFritz opened this issue Feb 23, 2022 · 4 comments

Comments

@KatieMFritz
Copy link

Steps to reproduce

  1. Go to Utilities > Guide in my local site.
  2. Select a Guide to copy.
  3. Click "Copy Guide Data" button.

What I expect to happen

JSON should be copied to my clipboard

What happens instead

Nothing gets copied to my clipboard.
Console error:

globals.779c1e1a.js:1 TypeError: Cannot read properties of undefined (reading 'writeText')
at Proxy.copyText (guide-admin.0c2f1b3e.js:1:623577)
at Proxy.copyExportData (guide-admin.0c2f1b3e.js:1:623957)
at l.onClick.t..t. (guide-admin.0c2f1b3e.js:1:625881)
at Yr (globals.779c1e1a.js:1:56677)
at es (globals.779c1e1a.js:1:56756)
at HTMLButtonElement.n (globals.779c1e1a.js:1:64069)

@wbrowar
Copy link
Owner

wbrowar commented Mar 6, 2022

Hi @KatieMFritz, I'm looking into this one and haven't been able to replicate it yet. Can you please tell me what browser you're using?

@iwe-hi
Copy link

iwe-hi commented Mar 17, 2022

Hi @wbrowar
We have the same error in Chrome V99.0.48.44.74 on mac os arm64. In Firefox V98.0.1 we get a "navigator.clipboard is undefined" error.

@wbrowar
Copy link
Owner

wbrowar commented Mar 27, 2022

Thanks, @KatieMFritz and @iwe-hi for the info! I was going to do some checks and swap out the copy button for a backup textfield when needed, but I sort of like the idea of letting you choose. So in this case the button shouldn't be there in a situation where the clipboard isn't accessible and you'd only see a text field, otherwise you’d see this:

Screen Shot 2022-03-27 at 7 33 14 PM

I'm just wrapping up some other bugs and will have a fix out soon.

@wbrowar
Copy link
Owner

wbrowar commented Mar 28, 2022

This has been released in 3.1.1!

@wbrowar wbrowar closed this as completed Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants