dynamic-marquee-react
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1005,9 +1005,7 @@ (function (global, factory) { | ||
childrenCount.current = filteredChildren.length; | ||
React.useLayoutEffect(function () { | ||
// Input items have changed. If there are frewer than before trim the item | ||
// sizes array. | ||
if (itemSizes.current.length > filteredChildren.length) { | ||
itemSizes.current = itemSizes.current.slice(0, filteredChildren.length); | ||
} | ||
}, [filteredChildren.length]); | ||
// Input items have changed. If there are fewer than before trim the item | ||
// sizes array. | ||
if (itemSizes.current.length > filteredChildren.length) { | ||
itemSizes.current = itemSizes.current.slice(0, filteredChildren.length); | ||
} | ||
React.useEffect(function () { | ||
@@ -1014,0 +1012,0 @@ if (!$container) |
{ | ||
"name": "dynamic-marquee-react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A `<Marquee />` component for React.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/dynamic-marquee-react.js", |
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
105258
2238