shineout 3.7.3-beta.2 → 3.7.3-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.
package/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.3-beta.2'
525
+ version: '3.7.3-beta.3'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.3-beta.2');
12237
+ /* harmony default export */ var version = ('3.7.3-beta.3');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -50265,6 +50265,7 @@ function use_previous_usePrevious(value) {
50265
50265
 
50266
50266
 
50267
50267
  var globalKey = '__global__&&@@';
50268
+ var SUBMIT_TIMEOUT = 10;
50268
50269
 
50269
50270
 
50270
50271
  var emptyObj = {};
@@ -50470,7 +50471,7 @@ var useForm = function useForm(props) {
50470
50471
  docScroll.top -= scrollToError;
50471
50472
  }
50472
50473
  }
50473
- });
50474
+ }, SUBMIT_TIMEOUT + 10);
50474
50475
  };
50475
50476
  var onChange = use_persist_fn(function (change) {
50476
50477
  var _props$onChange;
@@ -50650,14 +50651,14 @@ var useForm = function useForm(props) {
50650
50651
  });
50651
50652
  case 6:
50652
50653
  result = _context.sent;
50654
+ if (activeEl) activeEl.focus();
50653
50655
  if (result === true) {
50654
50656
  (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
50655
- if (activeEl) activeEl.focus();
50656
50657
  } else {
50657
50658
  handleSubmitError(result);
50658
50659
  }
50659
50660
  callback === null || callback === void 0 || callback();
50660
- case 9:
50661
+ case 10:
50661
50662
  case "end":
50662
50663
  return _context.stop();
50663
50664
  }
@@ -50671,7 +50672,7 @@ var useForm = function useForm(props) {
50671
50672
  var _other$onSubmit;
50672
50673
  submit();
50673
50674
  other === null || other === void 0 || (_other$onSubmit = other.onSubmit) === null || _other$onSubmit === void 0 || _other$onSubmit.call(other, e);
50674
- }, 10);
50675
+ }, SUBMIT_TIMEOUT);
50675
50676
  };
50676
50677
  };
50677
50678
  var validateFieldset = function validateFieldset(name, config) {
@@ -71564,7 +71565,7 @@ var upload_interface = __webpack_require__(8821);
71564
71565
 
71565
71566
 
71566
71567
  /* harmony default export */ var src_0 = ({
71567
- version: '3.7.3-beta.2'
71568
+ version: '3.7.3-beta.3'
71568
71569
  });
71569
71570
  }();
71570
71571
  /******/ return __webpack_exports__;