shineout 3.8.5-beta.5 → 3.8.5-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
@@ -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.8.5-beta.5'
525
+ version: '3.8.5-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.5-beta.5');
12389
+ /* harmony default export */ var version = ('3.8.5-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -36323,19 +36323,18 @@ function useInputAble(props) {
36323
36323
  var render = useRender(syncValue);
36324
36324
  var shouldUseState = delay || !control;
36325
36325
  var value = shouldUseState ? stateValue : valuePo;
36326
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36327
- if (context.timer) {
36328
- clearTimeout(context.timer);
36329
- context.timer = null;
36330
- }
36326
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36331
36327
  if (delay && control && props.value !== stateValue) {
36332
36328
  changeStateValue(props.value);
36329
+ } else if (context.timer) {
36330
+ clearTimeout(context.timer);
36331
+ context.timer = null;
36333
36332
  }
36334
36333
  }, [props.value, delay, control]);
36335
36334
  var forceDelayChange = use_persist_fn(function () {
36336
- if (context.timer && context.delayChange) {
36335
+ if (context.delayChange) context.delayChange();
36336
+ if (context.timer) {
36337
36337
  clearTimeout(context.timer);
36338
- context.delayChange();
36339
36338
  context.timer = null;
36340
36339
  context.delayChange = null;
36341
36340
  }
@@ -73290,7 +73289,7 @@ var upload_interface = __webpack_require__(8821);
73290
73289
 
73291
73290
 
73292
73291
  /* harmony default export */ var src_0 = ({
73293
- version: '3.8.5-beta.5'
73292
+ version: '3.8.5-fix.1'
73294
73293
  });
73295
73294
  }();
73296
73295
  /******/ return __webpack_exports__;