ronds-metadata 1.3.45 → 1.3.46

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
2
  /*
3
3
  * @Author: wangxian
4
4
  * @Date: 2022-06-24 08:44:41
5
- * @LastEditTime: 2024-05-27 17:07:08
5
+ * @LastEditTime: 2024-05-27 19:14:55
6
6
  */
7
7
  import React from 'react';
8
8
  function syncScroll(target, others, TopLeft, WidthHeight) {
@@ -71,14 +71,14 @@ export function useSyncScrollByRefs(refsRef, _ref3) {
71
71
  }
72
72
  locksRef.current = refsRef.current.length - 1;
73
73
  var others = refsRef.current.reduce(function (result, ref) {
74
- if (ref.current && ref.current !== target) result.push(ref.current);
74
+ if (ref && ref !== target) result.push(ref);
75
75
  return result;
76
76
  }, []);
77
77
  if (vertical) syncVerticalScroll(target, others);
78
78
  if (horizontal) syncHorizontalScroll(target, others);
79
79
  }
80
80
  var elements = refsRef.current.reduce(function (result, ref) {
81
- if (ref.current) result.push(ref.current);
81
+ if (ref) result.push(ref);
82
82
  return result;
83
83
  }, []);
84
84
  elements.forEach(function (el) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.45",
4
+ "version": "1.3.46",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",