-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
Difference between currentTarget and target of SyntheticEvent #5733
Comments
It mimics the DOM Event object API which also has From
|
I have problem with them: |
@max-mykhailenko Can you provide a jsfiddle that demonstrates the issue? It appears to work in my fiddle: https://jsfiddle.net/gpm18sqd/ |
#2850 seems to explain the reason for this bug. |
### Summary Use currentTarget since it's more reliable, and it solves the problem. ### Test Plan Type a letter. It no longer crashes. ### Notes facebook/react#5733
There is 2 properties in SyntheticEvent, currentTarget and target.
It is identical usage? or what is the difference between them?
The text was updated successfully, but these errors were encountered: