shineout 3.4.2-beta.7 → 3.4.2-fix.1

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
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
492
492
  // 此文件由脚本自动生成,请勿直接修改。
493
493
  // This file was generated automatically by a script. Please do not modify it directly.
494
494
  var _default = exports.default = {
495
- version: '3.4.2-beta.7'
495
+ version: '3.4.2-fix.1'
496
496
  };
package/dist/shineout.js CHANGED
@@ -11991,7 +11991,7 @@ var handleStyle = function handleStyle(style) {
11991
11991
  };
11992
11992
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11993
11993
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11994
- /* harmony default export */ var version = ('3.4.2-beta.7');
11994
+ /* harmony default export */ var version = ('3.4.2-fix.1');
11995
11995
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11996
11996
 
11997
11997
 
@@ -32458,19 +32458,18 @@ function useInputAble(props) {
32458
32458
  var render = useRender(syncValue);
32459
32459
  var shouldUseState = delay || !control;
32460
32460
  var value = shouldUseState ? stateValue : valuePo;
32461
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
32462
- if (context.timer) {
32463
- clearTimeout(context.timer);
32464
- context.timer = null;
32465
- }
32461
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
32466
32462
  if (delay && control && props.value !== stateValue) {
32467
32463
  changeStateValue(props.value);
32464
+ } else if (context.timer) {
32465
+ clearTimeout(context.timer);
32466
+ context.timer = null;
32468
32467
  }
32469
32468
  }, [props.value, delay, control]);
32470
32469
  var forceDelayChange = use_persist_fn(function () {
32471
- if (context.timer && context.delayChange) {
32470
+ if (context.delayChange) context.delayChange();
32471
+ if (context.timer) {
32472
32472
  clearTimeout(context.timer);
32473
- context.delayChange();
32474
32473
  context.timer = null;
32475
32474
  context.delayChange = null;
32476
32475
  }
@@ -65120,7 +65119,7 @@ var upload_interface = __webpack_require__(8821);
65120
65119
 
65121
65120
 
65122
65121
  /* harmony default export */ var src_0 = ({
65123
- version: '3.4.2-beta.7'
65122
+ version: '3.4.2-fix.1'
65124
65123
  });
65125
65124
  }();
65126
65125
  /******/ return __webpack_exports__;