react-onclickoutside
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "react-onclickoutside", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "An onClickOutside wrapper for React components", | ||
"main": "./index.js", | ||
"jsnext:main": "./index.js", | ||
"files": [ | ||
@@ -7,0 +8,0 @@ "index.js" |
@@ -5,6 +5,8 @@ # An onClickOutside wrapper for React components | ||
Note that this HOC relies on the `.classList` property, which is supported by all modern browsers, but not by no longer supported browsers like IE9 or older. If your code relies on classList in any way, you want to use a polyfill like [dom4](https://github.com/WebReflection/dom4) | ||
Note that this HOC relies on the `.classList` property, which is supported by all modern browsers, but not by deprecated and obsolete browsers like IE (noting that Microsoft Edge is not Microsoft Internet Explorer. Edge does not have any problems with the `classList` property for SVG elements). If your code relies on classList in any way, you want to use a polyfill like [dom4](https://github.com/WebReflection/dom4). | ||
This HOC supports stateless components as of v5.7.0, and uses pure class notation rather than `createClass` as of v6. | ||
This HOC is a **pure ES6 implementation** as of v6.x - if you need ES5 code you can either use 5.x or below, or set up your build system so that it does ES5 conversion for you, at whatever is the most logical point in your build chain. | ||
## Installation | ||
@@ -11,0 +13,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22949
223
0