Open scott-coates opened 8 years ago
I'm also facing this issue.
+1
+1
line 177 : React.DOM.span({'key': string}, string); line 191 : key: string,
The problem was that each element get the same key (count). with string its unique
I stopped using this package and started using react-hightlight-words. It fixed this issue.
There's a PR open https://github.com/helior/react-highlighter/pull/46 to fix it, however, it usually takes a rather long time to get anything merged.
As a workaround, you can set pointer-events: none
on the highlighter component.
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.