We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afa3918 commit aef01ccCopy full SHA for aef01cc
src/onClickOutside.js
@@ -36,6 +36,10 @@ module.exports = {
36
if(typeof this.handleClickOutside !== "function")
37
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");
38
39
+ if (!this.__outsideClickHandler) {
40
+ return;
41
+ }
42
+
43
var fn = this.__outsideClickHandler = (function(localNode, eventHandler) {
44
return function(evt) {
45
evt.stopPropagation();
0 commit comments