Open
Description
Describe the bug
When you click Copy
on the Keys
section of the UI the key is copied to system clipboard but has left padding.
To Reproduce
Steps to reproduce the behavior:
- Go to https://people.mozilla.org/p/bkochendorfer
- Scroll down to
Keys
- Click
Copy
next to ssh key. - Paste buffer somewhere, you will notice left padding is added.
Expected behavior
When copying we should copy the contents of the key not including left padding.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Debian 11 Bullseye*
- Browser: Firefox Nightly
- Version 93.0a1
Additional context
I believe this is the javascript generating this issue, https://github.com/mozilla-iam/dino-park-front-end/blob/master/src/components/ui/Key.vue#L49. According to MDN Document.execCommand
is deprecated so perhaps moving this to clipboard api would help https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API
Metadata
Assignees
Labels
No labels
Activity