rc-virtual-list
Advanced tools
Comparing version 3.4.4 to 3.4.6
@@ -66,3 +66,5 @@ import { useRef } from 'react'; | ||
return function () { | ||
listRef.current.removeEventListener('touchstart', onTouchStart); | ||
var _listRef$current; | ||
(_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart); | ||
cleanUpEvents(); | ||
@@ -69,0 +71,0 @@ clearInterval(intervalRef.current); |
@@ -288,5 +288,7 @@ var _excluded = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "component", "onScroll", "onVisibleChange"]; | ||
return function () { | ||
componentRef.current.removeEventListener('wheel', onRawWheel); | ||
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll); | ||
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll); | ||
if (componentRef.current) { | ||
componentRef.current.removeEventListener('wheel', onRawWheel); | ||
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll); | ||
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll); | ||
} | ||
}; | ||
@@ -293,0 +295,0 @@ }, [useVirtual]); // ================================= Ref ================================== |
@@ -78,3 +78,5 @@ "use strict"; | ||
return function () { | ||
listRef.current.removeEventListener('touchstart', onTouchStart); | ||
var _listRef$current; | ||
(_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.removeEventListener('touchstart', onTouchStart); | ||
cleanUpEvents(); | ||
@@ -81,0 +83,0 @@ clearInterval(intervalRef.current); |
@@ -316,5 +316,7 @@ "use strict"; | ||
return function () { | ||
componentRef.current.removeEventListener('wheel', onRawWheel); | ||
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll); | ||
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll); | ||
if (componentRef.current) { | ||
componentRef.current.removeEventListener('wheel', onRawWheel); | ||
componentRef.current.removeEventListener('DOMMouseScroll', onFireFoxScroll); | ||
componentRef.current.removeEventListener('MozMousePixelScroll', onMozMousePixelScroll); | ||
} | ||
}; | ||
@@ -321,0 +323,0 @@ }, [useVirtual]); // ================================= Ref ================================== |
{ | ||
"name": "rc-virtual-list", | ||
"version": "3.4.4", | ||
"version": "3.4.6", | ||
"description": "React Virtual List Component", | ||
@@ -68,4 +68,4 @@ "engines": { | ||
"rc-resize-observer": "^1.0.0", | ||
"rc-util": "^5.0.7" | ||
"rc-util": "^5.15.0" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
132343
2520
1
Updatedrc-util@^5.15.0