@sheinx/base 3.7.4-beta.1 → 3.7.4-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,12 +55,12 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
55
55
|
return scrollElRefProp || scrollElRefContext || closestScrollContainerRef;
|
|
56
56
|
}, [scrollElRefProp, scrollElRefContext]);
|
|
57
57
|
(0, _react.useEffect)(function () {
|
|
58
|
-
if (scrollElRefProp || scrollElRefContext) return;
|
|
58
|
+
if (scrollElRefProp || scrollElRefContext || !focus) return;
|
|
59
59
|
var closestScrollContainer = (0, _hooks.getClosestScrollContainer)(parentElRef.current);
|
|
60
60
|
if (closestScrollContainer) {
|
|
61
61
|
closestScrollContainerRef.current = closestScrollContainer;
|
|
62
62
|
}
|
|
63
|
-
}, [parentElRef, scrollElRefProp, scrollElRefContext]);
|
|
63
|
+
}, [parentElRef, scrollElRefProp, scrollElRefContext, focus]);
|
|
64
64
|
var _usePositionStyle = (0, _hooks.usePositionStyle)({
|
|
65
65
|
getContainer: getRoot,
|
|
66
66
|
position: position,
|
|
@@ -46,12 +46,12 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
46
46
|
return scrollElRefProp || scrollElRefContext || closestScrollContainerRef;
|
|
47
47
|
}, [scrollElRefProp, scrollElRefContext]);
|
|
48
48
|
useEffect(function () {
|
|
49
|
-
if (scrollElRefProp || scrollElRefContext) return;
|
|
49
|
+
if (scrollElRefProp || scrollElRefContext || !focus) return;
|
|
50
50
|
var closestScrollContainer = getClosestScrollContainer(parentElRef.current);
|
|
51
51
|
if (closestScrollContainer) {
|
|
52
52
|
closestScrollContainerRef.current = closestScrollContainer;
|
|
53
53
|
}
|
|
54
|
-
}, [parentElRef, scrollElRefProp, scrollElRefContext]);
|
|
54
|
+
}, [parentElRef, scrollElRefProp, scrollElRefContext, focus]);
|
|
55
55
|
var _usePositionStyle = usePositionStyle({
|
|
56
56
|
getContainer: getRoot,
|
|
57
57
|
position: position,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.4-beta.
|
|
3
|
+
"version": "3.7.4-beta.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.7.4-beta.
|
|
13
|
+
"@sheinx/hooks": "3.7.4-beta.3",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|