@sheinx/base 3.9.0-beta.32 → 3.9.0-beta.34

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.
@@ -50,8 +50,9 @@ var ListOption = function ListOption(props) {
50
50
  onOptionClick(data, index);
51
51
  };
52
52
  var setVirtualRowHeight = (0, _hooks.usePersistFn)(function () {
53
+ var _optionRef$current;
53
54
  if (!props.setRowHeight || !optionRef.current) return;
54
- var optionHeight = optionRef.current.getBoundingClientRect().height;
55
+ var optionHeight = (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.offsetHeight;
55
56
  if (optionHeight !== 0) {
56
57
  props.setRowHeight(index, optionHeight);
57
58
  }
@@ -44,8 +44,9 @@ var ListOption = function ListOption(props) {
44
44
  onOptionClick(data, index);
45
45
  };
46
46
  var setVirtualRowHeight = usePersistFn(function () {
47
+ var _optionRef$current;
47
48
  if (!props.setRowHeight || !optionRef.current) return;
48
- var optionHeight = optionRef.current.getBoundingClientRect().height;
49
+ var optionHeight = (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.offsetHeight;
49
50
  if (optionHeight !== 0) {
50
51
  props.setRowHeight(index, optionHeight);
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.0-beta.32",
3
+ "version": "3.9.0-beta.34",
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.9.0-beta.32",
13
+ "@sheinx/hooks": "3.9.0-beta.34",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"