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
Target value sometimes undefined #4745
Comments
Can you post a small reproducible example in https://react.jsbin.com/ or jsfiddle? I can't help you unless you give more information. |
https://jsbin.com/zekixo/ |
Bug occurs when the click target is the glyph instead of the button. Original browser mouse event has target correctly set, synthetic event does not have the target set. Reproducible in both 0.13 and 0.14. |
It looks like a bug that this is undefined, but after we fix it it'll be the span element which probably isn't what you want. You want |
Wait, what? |
Oh my God, I love you sophiebits, I have been fighting against this issue for weeks and did not find any solution, thanks a lot!! :) |
@sophiebits Thansk a lot!! it's working .. |
@sophiebits saves my life, thanks |
Ohh thank you so much, @sophiebits ! I was quite confused when my console was randomly giving 'undefined' when buttons clicked |
Thank you it also worked for me with the same problem |
I loop my product list with map() and create a react component for each item.
When I click on the button sometimes the e.target.value is defined and sometimes undefined. Its totally random. After clicking on the button 50 times, the value sets magically undefined.
The text was updated successfully, but these errors were encountered: