From 3750ebbac9d662c044f9af7d7d8cf7b01cfcd84e Mon Sep 17 00:00:00 2001 From: Leopold Joy Date: Thu, 8 Nov 2018 11:14:34 -0500 Subject: [PATCH] pass onClick event details to checker function --- src/components/Annotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Annotation.js b/src/components/Annotation.js index 31bc6c2..7ec504c 100644 --- a/src/components/Annotation.js +++ b/src/components/Annotation.js @@ -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;