Skip to content

Commit

Permalink
pass onClick event details to checker function
Browse files Browse the repository at this point in the history
  • Loading branch information
leopoldjoy committed Nov 8, 2018
1 parent f756e17 commit 3750ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default compose(
onClick = (e) => {
const { onClickCheckFunc } = this.props;

if (!onClickCheckFunc || onClickCheckFunc()) {
if (!onClickCheckFunc || onClickCheckFunc(e)) {
return this.callSelectorMethod('onClick', e)
}
return;
Expand Down

0 comments on commit 3750ebb

Please sign in to comment.