Skip to content

[@types/react] can't do event.target.value for event: React.ClipboardEvent<HTMLTextAreaElement> #69635

Discussion options

You must be logged in to vote

You want to use currentTarget here. Clipboard events bubble and it's therefore unsound to assume target is the same as where the event handler was attached.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hamirmahal
Comment options

Answer selected by hamirmahal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pkg: react Discussions related to react
3 participants