Skip to content
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

Fix clipboard #100

Merged
merged 3 commits into from
Jul 7, 2024
Merged

Fix clipboard #100

merged 3 commits into from
Jul 7, 2024

Conversation

huchenlei
Copy link
Member

Closes #98

@huchenlei huchenlei marked this pull request as draft July 7, 2024 01:28
) {
// Default system copy
return;
}

// copy nodes and clear clipboard
if (
e.target instanceof HTMLElement &&
e.target instanceof Element &&
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loose the typecheck constraint to Element.

@huchenlei huchenlei marked this pull request as ready for review July 7, 2024 01:53
@huchenlei huchenlei added the New Browser Test Expectations New browser test screenshot should be set by github action label Jul 7, 2024
@huchenlei huchenlei mentioned this pull request Jul 7, 2024
@huchenlei huchenlei merged commit 7dae2eb into main Jul 7, 2024
2 checks passed
@huchenlei huchenlei deleted the clipboard branch July 7, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Browser Test Expectations New browser test screenshot should be set by github action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Double paste when pasting in textarea
1 participant