ronds-metadata 1.2.49 → 1.2.50

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.
@@ -37,7 +37,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
37
37
  /*
38
38
  * @Author:wangxian
39
39
  * @Date: 2021-09-18 14:15:04
40
- * @LastEditTime: 2023-05-17 15:50:09
40
+ * @LastEditTime: 2023-05-17 16:30:23
41
41
  */
42
42
  import React from 'react';
43
43
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -381,7 +381,7 @@ function Index(props) {
381
381
  };
382
382
  var onDropdownVisibleChange = function onDropdownVisibleChange(_open) {
383
383
  setTreeselectOpen(_open);
384
- if (_open) {
384
+ if (_open && expandedKeys.length > 0 && treeRef.current) {
385
385
  setTimeout(function () {
386
386
  var _treeRef$current;
387
387
  (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.scrollTo({
@@ -390,7 +390,7 @@ function Index(props) {
390
390
  offset: 40
391
391
  });
392
392
  firstLoadTreeSelectRef.current = false;
393
- }, 100);
393
+ }, 1000);
394
394
  }
395
395
  };
396
396
  var processSelectType = function processSelectType(isCascader, isTreeSelect, isPagination) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.2.49",
4
+ "version": "1.2.50",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",