Socket
Socket
Sign inDemoInstall

@semcore/outside-click

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.4.6 to 2.4.7

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

## [2.4.7] - 2022-07-07
### Changed
- Version patch update due to children dependencies update (`@semcore/utils` [3.33.0 ~> 3.34.0]).
## [2.4.6] - 2022-06-02

@@ -7,0 +13,0 @@

2

lib/cjs/OutsideClick.js

@@ -58,3 +58,3 @@ "use strict";

(0, _react.useEffect)(function () {
var outsideRoot = root ? (0, _ref.getNodeByRef)(root) : (0, _ownerDocument["default"])(nodeRef.current); // true стоит, чтобы перехватить событие быстрее всех, так как, если таргет, по которому кликнули, будет удален из дома, то сработает OutsideClick, даже если елемент был в exclude
var outsideRoot = root ? (0, _ref.getNodeByRef)(root) : (0, _ownerDocument["default"])(nodeRef.current); // Using capture to handle event faster than OutsideClick handler

@@ -61,0 +61,0 @@ outsideRoot.addEventListener('mouseup', handleOutsideClick, true);

@@ -34,3 +34,3 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";

useEffect(function () {
var outsideRoot = root ? getNodeByRef(root) : ownerDocument(nodeRef.current); // true стоит, чтобы перехватить событие быстрее всех, так как, если таргет, по которому кликнули, будет удален из дома, то сработает OutsideClick, даже если елемент был в exclude
var outsideRoot = root ? getNodeByRef(root) : ownerDocument(nodeRef.current); // Using capture to handle event faster than OutsideClick handler

@@ -37,0 +37,0 @@ outsideRoot.addEventListener('mouseup', handleOutsideClick, true);

{
"name": "@semcore/outside-click",
"description": "SEMRush OutsideClick Component",
"version": "2.4.6",
"version": "2.4.7",
"main": "lib/cjs/index.js",

@@ -9,3 +9,3 @@ "module": "lib/es6/index.js",

"sideEffects": false,
"author": "Roman Lysov <r.lysov@semrush.com>",
"author": "UI-kit team <ui-kit-team@semrush.com>",
"license": "MIT",

@@ -12,0 +12,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc