You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating several links at once overwrites the clipboard with empty text #3864
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
When several links are created at once, or link creation fails with an error other than 400, useCopyLink still writes a ClipboardItem built from an empty text (getTextToCopy returns an empty string in these cases). Whatever the user had in the clipboard before is replaced by an empty string.
Reproduction Steps
Copy some text to the clipboard.
Select several files and create links for all of them at once (or let the link creation fail with a server error).
Paste.
Expected Outcome
The clipboard keeps its previous content when there is no single link to copy.
Activity