shineout 3.5.5-beta.1 → 3.5.5-beta.2

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5-beta.1'
510
+ version: '3.5.5-beta.2'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5-beta.1');
12043
+ /* harmony default export */ var version = ('3.5.5-beta.2');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -47927,6 +47927,8 @@ var useForm = function useForm(props) {
47927
47927
  return;
47928
47928
  }
47929
47929
  context.submitLock = true;
47930
+ var activeEl = document.activeElement;
47931
+ if (activeEl) activeEl.blur();
47930
47932
  setTimeout(function () {
47931
47933
  // 防止连续点击
47932
47934
  context.submitLock = false;
@@ -47952,16 +47954,17 @@ var useForm = function useForm(props) {
47952
47954
  case 5:
47953
47955
  result = _context.sent;
47954
47956
  if (!(result === true)) {
47955
- _context.next = 10;
47957
+ _context.next = 11;
47956
47958
  break;
47957
47959
  }
47958
47960
  (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
47959
- _context.next = 12;
47961
+ if (activeEl) activeEl.focus();
47962
+ _context.next = 13;
47960
47963
  break;
47961
- case 10:
47964
+ case 11:
47962
47965
  handleSubmitError(result);
47963
47966
  return _context.abrupt("return");
47964
- case 12:
47967
+ case 13:
47965
47968
  case "end":
47966
47969
  return _context.stop();
47967
47970
  }
@@ -67180,7 +67183,7 @@ var upload_interface = __webpack_require__(8821);
67180
67183
 
67181
67184
 
67182
67185
  /* harmony default export */ var src_0 = ({
67183
- version: '3.5.5-beta.1'
67186
+ version: '3.5.5-beta.2'
67184
67187
  });
67185
67188
  }();
67186
67189
  /******/ return __webpack_exports__;