"Copy URN" button in UI throws exception on "reading writeText"
See original GitHub issueDescribe the bug When clicking on the “Copy URN” button in the UI, the urn is not placed into clipboard and instead the UI throws an exception
To Reproduce Steps to reproduce the behavior:
- Open Developer Tools (or something to see javascript console)
- Go to to a screen that has the button
- Click on the button
- See following exception:
react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
at onClick (EntityHeader.tsx:180:45)
at J (button.js:233:57)
at Object.qe (react-dom.production.min.js:52:317)
at Ye (react-dom.production.min.js:52:471)
at react-dom.production.min.js:53:35
at wr (react-dom.production.min.js:100:68)
at Sr (react-dom.production.min.js:101:380)
at react-dom.production.min.js:113:65
at je (react-dom.production.min.js:292:189)
at react-dom.production.min.js:50:57
Expected behavior The URN should be placed into clipboard
Screenshots
Desktop (please complete the following information):
- macOS Catalina 10.15.7
- Google Chrome
- 99.0.4844.83 (Official Build) (x86_64)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
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 >DOMException on calling navigator.clipboard.readText()
Ironically, this caused the text to not be copied. The workaround was quite simple: clipboard.writeText(clippy_button.href).then(function( ...
Read more >Unblocking clipboard access - web.dev
To copy text to the clipboard call writeText() . Since this API is asynchronous, the writeText() function returns a Promise that resolves or...
Read more >Copy snippet action doesn't work without HTTPs #13776
Launch a storybook on a non-secure origin (ie, no https and no localhost) · Go to a story snippet and click on the...
Read more >Clipboard service not able to copy the text when you select ...
As i'm not able to copy the text when you select folder path and it is showing as exception. Could not find 'clipboard'...
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
Hi folks.
This has been Resolved in recent versions of DataHub.
Closing the ticket as fixed.
Thanks John
I have the same problem,Have you solved it
Chrome-version 101.0.4951.67