react-stick
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -16,3 +16,3 @@ 'use strict'; | ||
(0, _invariant2.default)(element instanceof window.HTMLElement || element instanceof window.SVGElement, 'Cannot retrieve client rect of text or null elements'); | ||
(0, _invariant2.default)(element instanceof window.Element, 'Cannot retrieve client rect of text or null elements'); | ||
@@ -19,0 +19,0 @@ return element.getBoundingClientRect(); |
{ | ||
"name": "react-stick", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "React component to stick a portaled node to an anchor node", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,4 +10,3 @@ // @flow | ||
invariant( | ||
element instanceof window.HTMLElement || | ||
element instanceof window.SVGElement, | ||
element instanceof window.Element, | ||
'Cannot retrieve client rect of text or null elements' | ||
@@ -14,0 +13,0 @@ ) |
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
634322
7887