@semcore/outside-click
Advanced tools
Comparing version 2.4.6 to 2.4.7
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27723
70
223