<Link to='/home' onClick={this.onItemClick}>
<i className="fa fa-file"></i>
<span id='works'>Click me - I work!!</span>
<Highlighter search={this.props.query} caseSensitive={false}>
{this.props.name}
</Highlighter>
</Link>
this.onItemClick is only invoked when clicking on span#works. However, clicking any of the elements from Highlighter 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.
this.onItemClickis only invoked when clicking onspan#works. However, clicking any of the elements fromHighlighterdoesn'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.