react-dropdown
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -29,2 +29,3 @@ "use strict"; | ||
this.mounted = true; | ||
this.handleDocumentClick = this.handleDocumentClick.bind(this); | ||
} | ||
@@ -44,3 +45,3 @@ | ||
value: function componentDidMount() { | ||
document.addEventListener("click", this.handleDocumentClick.bind(this), false); | ||
document.addEventListener("click", this.handleDocumentClick, false); | ||
} | ||
@@ -51,3 +52,3 @@ }, | ||
this.mounted = false; | ||
document.removeEventListener("click", this.handleDocumentClick.bind(this), false); | ||
document.removeEventListener("click", this.handleDocumentClick, false); | ||
} | ||
@@ -54,0 +55,0 @@ }, |
@@ -18,2 +18,3 @@ 'use strict'; | ||
this.mounted = true; | ||
this.handleDocumentClick = this.handleDocumentClick.bind(this); | ||
} | ||
@@ -28,3 +29,3 @@ | ||
componentDidMount() { | ||
document.addEventListener("click", this.handleDocumentClick.bind(this), false); | ||
document.addEventListener('click', this.handleDocumentClick, false); | ||
} | ||
@@ -34,3 +35,3 @@ | ||
this.mounted = false; | ||
document.removeEventListener("click", this.handleDocumentClick.bind(this), false); | ||
document.removeEventListener('click', this.handleDocumentClick, false); | ||
} | ||
@@ -37,0 +38,0 @@ |
{ | ||
"name": "react-dropdown", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "React dropdown component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
21978
562