Comparing version 4.0.6 to 4.0.7
@@ -61,6 +61,4 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
if (element) { | ||
if (element.offsetParent) { | ||
result = alignElement(source, element, align); | ||
} | ||
if (element && element.offsetParent) { | ||
result = alignElement(source, element, align); | ||
} else if (point) { | ||
@@ -72,3 +70,3 @@ result = alignPoint(source, point, align); | ||
if (onAlign) { | ||
if (onAlign && result) { | ||
onAlign(source, result); | ||
@@ -75,0 +73,0 @@ } |
@@ -81,6 +81,4 @@ "use strict"; | ||
if (element) { | ||
if (element.offsetParent) { | ||
result = (0, _domAlign.alignElement)(source, element, align); | ||
} | ||
if (element && element.offsetParent) { | ||
result = (0, _domAlign.alignElement)(source, element, align); | ||
} else if (point) { | ||
@@ -92,3 +90,3 @@ result = (0, _domAlign.alignPoint)(source, point, align); | ||
if (onAlign) { | ||
if (onAlign && result) { | ||
onAlign(source, result); | ||
@@ -95,0 +93,0 @@ } |
{ | ||
"name": "rc-align", | ||
"version": "4.0.6", | ||
"version": "4.0.7", | ||
"description": "align ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
29139
631