question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

navigator.clipboard.readText throws in Firefox

See original GitHub issue

If you paste data into a text cell in Firefox, the following error is thrown…

Uncaught (in promise) TypeError: navigator.clipboard.readText is not a function

Following the steps in this post stops the error throwing - https://stackoverflow.com/questions/67440036/navigator-clipboard-readtext-is-not-working-in-js

Is this a known issue for this package? I guess for now I’ll have to find a way to disable pasting data for Firefox users…

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jassmithcommented, May 27, 2022

I will get a hotfix out.

On Fri, May 27, 2022 at 6:47 AM Richard Lake @.***> wrote:

If you paste data into a text cell in Firefox, the following error is thrown…

Uncaught (in promise) TypeError: navigator.clipboard.readText is not a function

Following the steps in this post stops the error throwing - https://stackoverflow.com/questions/67440036/navigator-clipboard-readtext-is-not-working-in-js

Is this a known issue? I guess for now I’ll have to find a way to disable pasting data for Firefox users…

— Reply to this email directly, view it on GitHub https://github.com/glideapps/glide-data-grid/issues/349, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHN26EUGHU6PRVTDLHDELVMDG6HANCNFSM5XEI3J5A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

0reactions
jassmithcommented, May 27, 2022

My testing says this is fixed in 4.1.0, please re-open (or open a new bug since I think you cant reopen) if this is not the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

navigator.clipboard.readText() is not working in Firefox
Reading clipboard on Firefox (version 94, nov 2021) doesn't seem to work and throws an error: var promise = navigator.clipboard.readText(); ...
Read more >
Clipboard.readText() - Web APIs | MDN
The Clipboard interface's readText() method returns a Promise which resolves with a copy of the textual contents of the system clipboard. Syntax.
Read more >
Clipboard.read() - Web APIs - MDN Web Docs
The read() method of the Clipboard interface requests a copy of the clipboard's contents, delivering the data to the returned Promise when ...
Read more >
Clipboard.writeText() - Web APIs | MDN
The Clipboard interface's writeText() property writes the specified text string to the system clipboard. Text may be read back using either ...
Read more >
Interact with the clipboard - Mozilla - MDN Web Docs
The Clipboard API's navigator.clipboard.readText() and navigator.clipboard.read() methods let you read arbitrary text or binary data from the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found