Skip to content

BUG: Aleph breaks "Copy to clipboard" functionality #4213

@sjinks

Description

@sjinks

Describe the bug
The wrong text is copied when I copy a selection to the clipboard. This happens after the pop-up with the transliterated text appears.

To Reproduce
https://github.com/user-attachments/assets/45a3ecaa-c4fa-42f3-a234-35fe2409c6d3

00:01: I hover the subject of the email; the pop-up with the transliterated subject appears
00:03: I click the subject, and the email opens
00:04: I select a text in the email and copy it to the clipboard
00:06: I paste the copied text into another program
00:06: The transliterated subject gets pasted instead of the selected text

Expected behavior
When I hit Ctrl-C, I expect the selected text to get copied into the clipboard.

Aleph version
4.1.1.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
I blame it on the Transliterate component; if it gets destroyed before the onClose event fires, the copyText event handler is never removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThings that should work, but don’ttriageThese issues need to be reviewed by the Aleph team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions