Skip to content

Commit aef01cc

Browse files
committed
Fix __outsideClickHandler
1 parent afa3918 commit aef01cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/onClickOutside.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ module.exports = {
3636
if(typeof this.handleClickOutside !== "function")
3737
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");
3838

39+
if (!this.__outsideClickHandler) {
40+
return;
41+
}
42+
3943
var fn = this.__outsideClickHandler = (function(localNode, eventHandler) {
4044
return function(evt) {
4145
evt.stopPropagation();

0 commit comments

Comments
 (0)