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

Remove try catch from paste event listener handler #189

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

Skalakid
Copy link
Collaborator

Details

Follow up to #178

Related Issues

GH_LINK

Manual Tests

In your App add the following code and test if pasting text to live markdown text input doesn't throw any errors.

document.addEventListener('paste', (e) => {
      // your code
});

Linked PRs

Object.defineProperty(event, 'target', {writable: false, value: divRef.current});
}
callback(event);
// eslint-disable-next-line no-empty
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// eslint-disable-next-line no-empty

@Skalakid Skalakid merged commit 5443eb1 into main Feb 15, 2024
2 checks passed
@Skalakid Skalakid deleted the @Skalakid/paste-event-listener-follow-up branch February 15, 2024 09:28
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