When setting the onClick event in the following way:
<button type="button" field={this.props.name} onClick={this.props.add_item}> <i className="fa fa-plus"></i> </button> In the end I want to get the field attribute from the event target.
Now the problem: When I click on the button area i'll get the field attribute, but when clicked the child it also triggers the event but from a different target element (it has no field attribute; ...which I could set of course). But isn't there a better way to make the whole element trigger from the same target or something like that?