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 5.6.0 to 5.7.0

8

index.js

@@ -91,3 +91,3 @@ /**

getInstance: function() {
return this.refs.instance;
return Component.prototype.isReactComponent ? this.refs.instance : this;
},

@@ -211,6 +211,8 @@

});
props.ref = 'instance';
if (Component.prototype.isReactComponent) {
props.ref = 'instance';
}
props.disableOnClickOutside = this.disableOnClickOutside;
props.enableOnClickOutside = this.enableOnClickOutside;
return React.createElement(Component, props);
return React.createElement(Component, props);
}

@@ -217,0 +219,0 @@ });

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

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

@@ -7,2 +7,4 @@ # An onClickOutside wrapper for React components

This HOC supports stateless components as of v5.7.0
## Installation

@@ -9,0 +11,0 @@

@@ -69,4 +69,4 @@ var React = require('react');

});
describe('with instance method', function() {

@@ -116,3 +116,3 @@ it('and class inheritance, should call the specified handler when clicking the document', function() {

},
handleClickOutside: function(event) {

@@ -122,3 +122,3 @@ if (event === undefined) {

}
this.setState({

@@ -128,3 +128,3 @@ clickOutsideHandled: true

},
render: function() {

@@ -202,5 +202,4 @@ return React.createElement('div');

// ToDo: Does not work
it.skip('and stateless function, should call the specified handler when clicking the document', function() {
it('and stateless function, should call the specified handler when clicking the document', function() {
var Component = function() {

@@ -207,0 +206,0 @@ return React.createElement('div');

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