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
Copy PGN button doesn't work #12737
Comments
Likely introduced by #12719 Console would be useful. clipboardItem is supposed to be supported by Chrome: https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem but I guess in practice it’s not 😒 |
Note that it seems to work on Firefox 107.0 and 112.2 |
Tangential but could not navigate by Tab to aforementioned button after 'Load game' (Chrome, Windows). Every other element in this group focuses correctly via keyboard. |
Thanks for testing, found the issue, which is a weird quirk of Chrome |
Thanks for the report, please create a separate issue! |
Apparently on Chrome you need to specify the type of the Blob `{ type: 'text/plain' }`. I've left the `console.log` since it's useful in the future since it should only be triggered when something on our end is not working as expected. Tested on Chrome, Safari and Firefox fix lichess-org#12737
Exact URL of where the bug happened
https://lichess.org/broadcast/fide-world-chess-championship-2023/round-12/J8916aqB/Ug3FxCtz
Steps to reproduce the bug
What did you expect to happen?
PGN copied to clipboard
What happened instead?
The PGN wasn't copied to the clipboard
Operating system
Windows 10
Browser and version (or alternate access method)
Chrome 112.0.5615.138 / Microsoft Edge 112.0.1722.58
Additional information
Verified by 1vader in Discord https://discord.com/channels/280713822073913354/693123651272179793/1100715862350106634
The text was updated successfully, but these errors were encountered: