I render multiple 'div' which the user can select by clicking on it with a simple onClick:
<div onClick={() => this.handleTrackerCardClick()}>
However the user can also edit a field displayed on the 'div' by clicking on a button. In this case I don't want the 'div onClick' to be called, because obviously the user wants to use the Edit function and not to select the 'div'.
See the following example:
- The user can click on the green area to select the 'div'
- If the pencil (in red area) is clicked, I don't want the call the 'div onClick'
Is this possible?
Thank you!
