Socket
Socket
Sign inDemoInstall

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 0.3.1 to 0.3.2

5

index.js

@@ -56,3 +56,3 @@ /**

componentDidMount: function() {
if(!this.handleClickOutside)
if(typeof this.handleClickOutside !== "function")
throw new Error("Component lacks a handleClickOutside(event) function for processing outside click events.");

@@ -62,2 +62,3 @@

return function(evt) {
evt.stopPropagation();
var source = evt.target;

@@ -117,3 +118,3 @@ var found = false;

*/
disableOnClickOutside: function(fn) {
disableOnClickOutside: function() {
var fn = this.__outsideClickHandler;

@@ -120,0 +121,0 @@ document.removeEventListener("mousedown", fn);

2

package.json
{
"name": "react-onclickoutside",
"version": "0.3.1",
"version": "0.3.2",
"description": "An onClickOutside mixin for React components",

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

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