Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-onclickoutside

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-onclickoutside - npm Package Compare versions

Comparing version 4.1.1 to 4.2.0

4

index.js

@@ -108,3 +108,3 @@ /**

var fn = this.__outsideClickHandler;
if (global.document != null) {
if (root.document != null) {
document.addEventListener("mousedown", fn);

@@ -121,3 +121,3 @@ document.addEventListener("touchstart", fn);

var fn = this.__outsideClickHandler;
if (global.document != null) {
if (root.document != null) {
document.removeEventListener("mousedown", fn);

@@ -124,0 +124,0 @@ document.removeEventListener("touchstart", fn);

{
"name": "react-onclickoutside",
"version": "4.1.1",
"version": "4.2.0",
"description": "An onClickOutside mixin for React components",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -129,4 +129,4 @@ # An onClickOutside mixin for React components

If you still use React 0.13 or 0.12, any version up to and including 3.* will work. Any version v4.* or above will not work due to relying on modules not introduced until React 0.14.
If you still use React 0.13 or 0.12, any version up to and including 2.4 will work. Any version v4.* or above will not work due to relying on modules not introduced until React 0.14.
If you use React 0.14 or above, use v4.*, as that specifically uses `react-DOM` for the necessary DOM event bindings.
If you use React 0.14 or above, use v2.5 or higher, as that specifically uses `react-DOM` for the necessary DOM event bindings.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc