-
Notifications
You must be signed in to change notification settings - Fork 42
onClick handler not fired on children #20
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
Comments
I'm also facing this issue. |
+1 |
1 similar comment
+1 |
line 177 : React.DOM.span({'key': string}, string); The problem was that each element get the same key (count). |
I stopped using this package and started using react-hightlight-words. It fixed this issue. |
There's a PR open #46 to fix it, however, it usually takes a rather long time to get anything merged. |
As a workaround, you can set |
this.onItemClick
is only invoked when clicking onspan#works
. However, clicking any of the elements fromHighlighter
doesn't actually propagate the event in any way. I've found that it does work when I remove{'key': this.count}
from the children in the array.The text was updated successfully, but these errors were encountered: