Skip to content

Use an explicit value for the copy attribute element#16896

Merged
brandonkelly merged 4 commits into5.xfrom
bugfix/copy-to-clipboard-duplicate-text
Mar 17, 2025
Merged

Use an explicit value for the copy attribute element#16896
brandonkelly merged 4 commits into5.xfrom
bugfix/copy-to-clipboard-duplicate-text

Conversation

@brianjhanson
Copy link
Copy Markdown
Contributor

We were previously using innerText which would unintentionally pick up text like the screen reader labels

Before

CleanShot.2025-03-14.at.14.46.55.mp4

After

CleanShot.2025-03-14.at.14.47.19.mp4

Props to @i-just for noticing this one.

brianjhanson and others added 4 commits March 14, 2025 14:43
We were previously using `innerText` which would unintentionally pick up
text like the screen reader labels
[ci skip]
@brandonkelly brandonkelly merged commit c8c13d9 into 5.x Mar 17, 2025
@brandonkelly brandonkelly deleted the bugfix/copy-to-clipboard-duplicate-text branch March 17, 2025 21:12
@i-just i-just mentioned this pull request Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants