navigator.clipboard.readText throws in Firefox
See original GitHub issueIf 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:
- Created a year ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will get a hotfix out.
On Fri, May 27, 2022 at 6:47 AM Richard Lake @.***> wrote:
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.