@sheinx/hooks 3.7.3-beta.3 → 3.7.3-beta.4

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.
@@ -410,14 +410,14 @@ var useForm = function useForm(props) {
410
410
  });
411
411
  case 6:
412
412
  result = _context.sent;
413
- if (activeEl) activeEl.focus();
414
413
  if (result === true) {
415
414
  (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
415
+ if (activeEl) activeEl.focus();
416
416
  } else {
417
417
  handleSubmitError(result);
418
418
  }
419
419
  callback === null || callback === void 0 || callback();
420
- case 10:
420
+ case 9:
421
421
  case "end":
422
422
  return _context.stop();
423
423
  }
@@ -401,14 +401,14 @@ var useForm = function useForm(props) {
401
401
  });
402
402
  case 6:
403
403
  result = _context.sent;
404
- if (activeEl) activeEl.focus();
405
404
  if (result === true) {
406
405
  (_props$onSubmit2 = props.onSubmit) === null || _props$onSubmit2 === void 0 || _props$onSubmit2.call(props, (_context$value2 = context.value) !== null && _context$value2 !== void 0 ? _context$value2 : {});
406
+ if (activeEl) activeEl.focus();
407
407
  } else {
408
408
  handleSubmitError(result);
409
409
  }
410
410
  callback === null || callback === void 0 || callback();
411
- case 10:
411
+ case 9:
412
412
  case "end":
413
413
  return _context.stop();
414
414
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.7.3-beta.3",
3
+ "version": "3.7.3-beta.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",