react-onclickoutside
Advanced tools
Comparing version 5.7.0 to 5.7.1
@@ -102,2 +102,9 @@ /** | ||
componentDidMount: function() { | ||
// If we are in an environment without a DOM such | ||
// as shallow rendering or snapshots then we exit | ||
// early to prevent any unhandled errors being thrown. | ||
if (typeof document === 'undefined' || !document.createElement){ | ||
return; | ||
} | ||
var instance = this.getInstance(); | ||
@@ -104,0 +111,0 @@ var clickOutsideHandler; |
{ | ||
"name": "react-onclickoutside", | ||
"version": "5.7.0", | ||
"version": "5.7.1", | ||
"description": "An onClickOutside mixin for React components", | ||
@@ -25,3 +25,4 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "npm run lint && karma start test/karma.conf.js --single-run", | ||
"test": "npm run lint && karma start test/karma.conf.js --single-run && npm run test:nodom", | ||
"test:nodom": "mocha test/no-dom-test.js", | ||
"lint": "eslint index.js ./test", | ||
@@ -49,4 +50,6 @@ "precommit": "npm run lint" | ||
"react-dom": "^15.0.0", | ||
"react-test-renderer": "^15.0.0", | ||
"require-hijack": "^1.2.1", | ||
"webpack": "^1.12.14" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34160
11
626
18