Socket
Socket
Sign inDemoInstall

react-relative-portal

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-relative-portal - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

26

dist/Portal.js

@@ -29,16 +29,2 @@ 'use strict';

function eventPath(e) {
if (e.path) {
return e.path;
}
var path = [];
var node = e.target;
while (!document.body.isEqualNode(node)) {
path.push(node);
node = node.parentNode;
}
return path;
}
var Portal = function (_React$Component) {

@@ -58,10 +44,6 @@ _inherits(Portal, _React$Component);

if (typeof _this.props.onOutClick === 'function') {
(function () {
var root = _reactDom2.default.findDOMNode(_this.element);
if (!eventPath(e).some(function (node) {
return node.isEqualNode && node.isEqualNode(root);
})) {
_this.props.onOutClick();
}
})();
var root = _reactDom2.default.findDOMNode(_this.element);
if (!root.contains(e.target)) {
_this.props.onOutClick();
}
}

@@ -68,0 +50,0 @@ };

2

package.json
{
"name": "react-relative-portal",
"version": "1.1.7",
"version": "1.1.8",
"description": "React component for place dropdowns outside overflow: hidden; elements",

@@ -5,0 +5,0 @@ "main": "dist/RelativePortal.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